Module: Spina::Pro::InboxesHelper

Defined in:
lib/spina/pro/inboxes_helper.rb

Instance Method Summary collapse

Instance Method Details

#inboxesObject



4
5
6
# File 'lib/spina/pro/inboxes_helper.rb', line 4

def inboxes
  @inboxes ||= Spina::Pro::Inbox.order(:label)
end

#unread_countObject



8
9
10
# File 'lib/spina/pro/inboxes_helper.rb', line 8

def unread_count
  @unread_count ||= Spina::Pro::Inbox.sum(:unread_count)
end