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-6.3.1 app/models/concerns/imageable.rb
udongo-6.3.0 app/models/concerns/imageable.rb