Module: ApiResource::Observing
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveModel::Observing
- Included in:
- Base
- Defined in:
- lib/api_resource/observing.rb
Instance Method Summary collapse
-
#notify_observers(method) ⇒ Object
also need to override notify_observers to return false if ANY of the observers return false, however it will ALWAYS run them all.
Instance Method Details
#notify_observers(method) ⇒ Object
also need to override notify_observers to return false if ANY of the observers return false, however it will ALWAYS run them all
31 32 33 34 35 |
# File 'lib/api_resource/observing.rb', line 31 def notify_observers(method) self.class.observer_instances.inject(true) do |accum, obs| obs.update(method, self) && accum end end |