Sha256: 1620e1e8db2e87d3699877653b345c58c90b0b0f296d36fab58886af6e9f75a2

Contents?: true

Size: 190 Bytes

Versions: 15

Compression:

Stored size: 190 Bytes

Contents

module Activities
  class SectionObserver < ActiveRecord::Observer
    observe :section

    def after_destroy(record)
      Activity.destroy_all(:section_id => record.id)
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 app/observers/activities/section_observer.rb
adva-0.3.1 app/observers/activities/section_observer.rb
adva-0.3.0 app/observers/activities/section_observer.rb
adva-0.2.4 app/observers/activities/section_observer.rb
adva-0.2.3 app/observers/activities/section_observer.rb
adva-0.2.2 app/observers/activities/section_observer.rb
adva-0.2.1 app/observers/activities/section_observer.rb
adva-0.2.0 app/observers/activities/section_observer.rb
adva-0.1.4 app/observers/activities/section_observer.rb
adva-0.1.3 app/observers/activities/section_observer.rb
adva-0.1.2 app/observers/activities/section_observer.rb
adva-0.1.1 app/observers/activities/section_observer.rb
adva-0.1.0 app/observers/activities/section_observer.rb
adva_activity-0.0.1 app/observers/activities/section_observer.rb
adva-0.0.1 adva_activity/app/observers/activities/section_observer.rb