Module: Refinery::PageImages::Extension::InstanceMethods

Defined in:
lib/refinery/page_images/extension.rb

Instance Method Summary collapse

Instance Method Details

#caption_for_image_index(index) ⇒ Object



54
55
56
# File 'lib/refinery/page_images/extension.rb', line 54

def caption_for_image_index(index)
  self.image_pages[index].try(:caption).presence || ""
end

#image_page_id_for_image_index(index) ⇒ Object



58
59
60
# File 'lib/refinery/page_images/extension.rb', line 58

def image_page_id_for_image_index(index)
  self.image_pages[index].try(:id)
end