Class: Spina::Pro::Inbox

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/spina/pro/inbox.rb

Instance Method Summary collapse

Instance Method Details

#forwarding?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/models/spina/pro/inbox.rb', line 15

def forwarding?
  forward_email.present?
end

#update_unread_countObject



11
12
13
# File 'app/models/spina/pro/inbox.rb', line 11

def update_unread_count
  update(unread_count: messages.unread.not_archived.ham.count)
end