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.9.0 app/models/concerns/imageable.rb
udongo-7.8.1 app/models/concerns/imageable.rb
udongo-7.8.0 app/models/concerns/imageable.rb
udongo-7.7.2 app/models/concerns/imageable.rb
udongo-7.7.1 app/models/concerns/imageable.rb
udongo-7.7.0 app/models/concerns/imageable.rb
udongo-7.6.2 app/models/concerns/imageable.rb
udongo-7.6.1 app/models/concerns/imageable.rb
udongo-7.6.0 app/models/concerns/imageable.rb
udongo-7.5.1 app/models/concerns/imageable.rb
udongo-7.5.0 app/models/concerns/imageable.rb
udongo-7.4.2 app/models/concerns/imageable.rb
udongo-7.4.1 app/models/concerns/imageable.rb
udongo-7.4.0 app/models/concerns/imageable.rb
udongo-7.3.5 app/models/concerns/imageable.rb
udongo-7.3.4 app/models/concerns/imageable.rb
udongo-7.3.3 app/models/concerns/imageable.rb
udongo-7.3.2 app/models/concerns/imageable.rb
udongo-7.3.1 app/models/concerns/imageable.rb
udongo-7.2.1 app/models/concerns/imageable.rb