Module: Seedie::Reporters::Reportable

Includes:
Observable
Included in:
Associations::BaseAssociation, Model::Creator, ModelSeeder, Seeder
Defined in:
lib/seedie/reporters/reportable.rb

Instance Method Summary collapse

Instance Method Details

#add_observers(observers) ⇒ Object


15
16
17
# File 'lib/seedie/reporters/reportable.rb', line 15

def add_observers(observers)
  observers.each { |observer| add_observer(observer) }
end

#report(event_type, options = {}) ⇒ Object


10
11
12
13
# File 'lib/seedie/reporters/reportable.rb', line 10

def report(event_type, options = {})
  changed
  notify_observers(event_type, options)
end