Sha256: 62cb697eae4d67b9d160d2ef8fdd1ad45746d7260a41e5898c202277a229b4ce

Contents?: true

Size: 298 Bytes

Versions: 13

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true
module BitCore
  # Listen for BitCore::Slide lifecycle events.
  # Registered in config/application.rb
  class SlideObserver < ActiveRecord::Observer
    def before_destroy(slide)
      MediaAccessEvent.where(bit_core_slide_id: slide.id).destroy_all
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.22.8 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.22.7 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.22.6 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.22.5 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.22.4 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.22.2 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.22.1 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.22.0 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.21.2 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.21.1 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.21.0 app/models/bit_core/slide_observer.rb
think_feel_do_engine-3.20.1 app/models/bit_core/slide_observer.rb