Module: GeoWorks::ImageFileBehavior

Extended by:
ActiveSupport::Concern
Included in:
GeoFileSetBehavior
Defined in:
app/models/concerns/geo_works/image_file_behavior.rb

Overview

Attributes and methods for image files

Instance Method Summary collapse

Instance Method Details

#image_workGeoWorks::ImageWork

Retrieve the Image Work of which this Object is a member

Returns:

  • (GeoWorks::ImageWork)


8
9
10
11
12
# File 'app/models/concerns/geo_works/image_file_behavior.rb', line 8

def image_work
  parents.select do |parent|
    parent.class.included_modules.include?(::GeoWorks::ImageWorkBehavior)
  end.to_a
end