Class: Flapjack::Data::Notification

Inherits:
Object
  • Object
show all
Includes:
Extensions::ShortName, Zermelo::Records::RedisSet
Defined in:
lib/flapjack/data/notification.rb

Class Method Summary collapse

Class Method Details

.destroy_state(notification_id, st_id) ⇒ Object



27
28
29
30
31
# File 'lib/flapjack/data/notification.rb', line 27

def self.destroy_state(notification_id, st_id)
  # won't be deleted if still referenced elsewhere -- see the State
  # before_destroy callback
  Flapjack::Data::State.intersect(:id => st_id).destroy_all
end