Sha256: 4fd974df05cf8b8030c269b292529d883ccc44795c5994d5c4c284707de36f50

Contents?: true

Size: 392 Bytes

Versions: 17

Compression:

Stored size: 392 Bytes

Contents

module GeoConcerns
  # Attributes and methods for image files
  module ImageFileBehavior
    extend ActiveSupport::Concern

    # Retrieve the Image Work of which this Object is a member
    # @return [GeoConcerns::ImageWork]
    def image_work
      parents.select do |parent|
        parent.class.included_modules.include?(::GeoConcerns::ImageWorkBehavior)
      end.to_a
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.3.3 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.3.2 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.3.1 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.3.0 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.2.0 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.1.1 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.1.0 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.0.10 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.0.9 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.0.8 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.0.7 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.0.6 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.0.5 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.0.4 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.0.3 app/models/concerns/geo_concerns/image_file_behavior.rb
geo_concerns-0.0.2 app/models/concerns/geo_concerns/image_file_behavior.rb