Module: GeoConcerns::ImageFileBehavior

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

Overview

Attributes and methods for image files

Instance Method Summary collapse

Instance Method Details

#image_workGeoConcerns::ImageWork

Retrieve the Image Work of which this Object is a member

Returns:

  • (GeoConcerns::ImageWork)


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

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