Sha256: 08c7f77705bf8620c460d921e0148219fc71525afae3caff54424502936f7c82

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 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
      generic_works.select do |parent|
        parent.class.included_modules.include?(::GeoConcerns::ImageWorkBehavior)
      end.to_a
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geo_concerns-0.0.1 app/models/concerns/geo_concerns/image_file_behavior.rb