Sha256: d7868f4bce1267dac8fe0e65c27d191e1dafb728519fafab798fd567b26ab9aa

Contents?: true

Size: 203 Bytes

Versions: 42

Compression:

Stored size: 203 Bytes

Contents

module Concerns
  module Imageable
    extend ActiveSupport::Concern

    included do
      has_many :images, as: :imageable, dependent: :destroy
    end

    def imageable?
      true
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
udongo-7.2.0 app/models/concerns/imageable.rb
udongo-7.1.3 app/models/concerns/imageable.rb
udongo-7.1.2 app/models/concerns/imageable.rb
udongo-7.1.1 app/models/concerns/imageable.rb
udongo-7.1.0 app/models/concerns/imageable.rb
udongo-7.0.4 app/models/concerns/imageable.rb
udongo-7.0.3 app/models/concerns/imageable.rb
udongo-7.0.2 app/models/concerns/imageable.rb
udongo-7.0.1 app/models/concerns/imageable.rb
udongo-7.0.0 app/models/concerns/imageable.rb
udongo-6.6.3 app/models/concerns/imageable.rb
udongo-6.6.2 app/models/concerns/imageable.rb
udongo-6.6.1 app/models/concerns/imageable.rb
udongo-6.6.0 app/models/concerns/imageable.rb
udongo-6.5.2 app/models/concerns/imageable.rb
udongo-6.5.1 app/models/concerns/imageable.rb
udongo-6.5.0 app/models/concerns/imageable.rb
udongo-6.4.1 app/models/concerns/imageable.rb
udongo-6.4.0 app/models/concerns/imageable.rb
udongo-6.3.2 app/models/concerns/imageable.rb