Sha256: cf5c29c5c387fbac191cde09cde3db0ee383860e91142fe1977fc192b1e36e91

Contents?: true

Size: 186 Bytes

Versions: 2

Compression:

Stored size: 186 Bytes

Contents

module WithContent
  extend ActiveSupport::Concern

  included do
    before_destroy :destroy_usages!
  end

  private

  def destroy_usages!
    Usage.destroy_usages_for self
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mumuki-laboratory-7.1.0 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-925adf85cca8/app/models/concerns/with_content.rb
mumuki-domain-7.1.0 app/models/concerns/with_content.rb