Method: Notification#sendable?

Defined in:
lib/app/models/notification.rb

#sendable?Boolean

If this notification can be resent, we don’t want to resend one that is currently being processed.

Returns:

  • (Boolean)


73
74
75
# File 'lib/app/models/notification.rb', line 73

def sendable?
  [STATE_PROCESSED, STATE_INVALID, STATE_NEW, STATE_VIEWED].include? state
end