Module: RefineryPageImages::AddImagesWithCaptionsConcern::InstanceMethods
- Defined in:
- app/models/concerns/refinery_page_images/add_images_with_captions_concern.rb
Instance Method Summary collapse
Instance Method Details
#images_with_captions ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'app/models/concerns/refinery_page_images/add_images_with_captions_concern.rb', line 12 def @images_with_captions = image_pages.map do |ref| OpenStruct.new( { image: Refinery::Image.find(ref.image_id), caption: ref. || '' } ) end end |