Method: Notification#deletable?
- Defined in:
- lib/app/models/notification.rb
#deletable? ⇒ Boolean
If this notification can be deleted, we don’t want to delete one that is currently being processed.
66 67 68 |
# File 'lib/app/models/notification.rb', line 66 def deletable? [STATE_PROCESSED, STATE_INVALID, STATE_NEW, STATE_VIEWED].include? state end |