Files
fizzy/app/helpers/entropy_helper.rb
T
2025-10-14 12:05:21 -05:00

24 lines
546 B
Ruby

module EntropyHelper
def entropy_auto_close_options
[ 3, 7, 30, 90, 365, 11 ]
end
def entropy_bubble_options_for(card)
{
daysBeforeReminder: card.entropy.days_before_reminder,
closesAt: card.entropy.auto_clean_at.iso8601,
action: "Closes"
}
end
def stalled_bubble_options_for(card)
if card.last_activity_spike_at
{
stalledAfterDays: card.entropy.days_before_reminder,
lastActivitySpikeAt: card.last_activity_spike_at.iso8601,
action: "Stalled"
}
end
end
end