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