Sha256: 7abdcd20d60158dda610ebb61c0549718bd096002508c9174305fbdbf9e352ea

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 app/models/concerns/geo_works/image_file_behavior.rb
geo_works-0.1.4 app/models/concerns/geo_works/image_file_behavior.rb
geo_works-0.1.3 app/models/concerns/geo_works/image_file_behavior.rb
geo_works-0.1.2 app/models/concerns/geo_works/image_file_behavior.rb
geo_works-0.1.1 app/models/concerns/geo_works/image_file_behavior.rb
geo_works-0.1.0 app/models/concerns/geo_works/image_file_behavior.rb