Module: State::Notifier::ClassMethods

Defined in:
lib/state/notifier.rb

Instance Method Summary collapse

Instance Method Details

#notification_targets(*values) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/state/notifier.rb', line 46

def notification_targets(*values)
  if values.present?
    @notification_targets = values
  else
    @notification_targets
  end
end

#reserved_attributesObject



54
55
56
# File 'lib/state/notifier.rb', line 54

def reserved_attributes
  %w[created_at updated_at state]
end