MorningPeak/app/helpers/bills_helper.rb
2015-07-14 02:23:59 +02:00

9 lines
167 B
Ruby

module BillsHelper
def user_bills_count_due
return nil if not user_signed_in?
return (current_user.bills.next + current_user.bills.retard).count
end
end