Module: CaseCollectionObserver::Base::ClassMethods

Defined in:
lib/case_collection_observer/base.rb

Instance Method Summary collapse

Instance Method Details

#has_and_belongs_to_many_with_observer(association_id, options = {}, &extension) ⇒ Object



19
20
21
22
# File 'lib/case_collection_observer/base.rb', line 19

def has_and_belongs_to_many_with_observer(association_id, options = {}, &extension)
  has_and_belongs_to_many association_id, case_observer_options(association_id, options), &extension
  case_observer_callbacks(association_id)
end

#has_many_with_observer(association_id, options = {}, &extension) ⇒ Object



14
15
16
17
# File 'lib/case_collection_observer/base.rb', line 14

def has_many_with_observer(association_id, options = {}, &extension)
  has_many association_id, case_observer_options(association_id, options), &extension
  case_observer_callbacks(association_id)
end