Class: MultiNotifier::Middleware
- Inherits:
-
Object
- Object
- MultiNotifier::Middleware
show all
- Includes:
- ActiveModel::Model
- Defined in:
- lib/multi_notifier/middleware.rb
Instance Method Summary
collapse
Instance Method Details
#notify ⇒ Object
8
9
10
|
# File 'lib/multi_notifier/middleware.rb', line 8
def notify
raise "Implement #{self.class.name}#notify"
end
|
#notify! ⇒ Object
12
13
14
15
16
|
# File 'lib/multi_notifier/middleware.rb', line 12
def notify!
raise error_msg(errors.messages) unless valid?
notify
end
|