MorningPeak/app/helpers/ticket_clients_helper.rb
2015-06-19 21:35:48 +02:00

9 lines
154 B
Ruby

module TicketClientsHelper
def user_tickets_unview_count
return nil if not user_signed_in?
return current_user.tickets_unview.count
end
end