Sha256: fad850df3e7a710514076a84b6a0199d10954e78f78b1cad5f0f407817813db4
Contents?: true
Size: 710 Bytes
Versions: 26
Compression:
Stored size: 710 Bytes
Contents
module Spina module PagesHelper def content(part_name = nil) Current.page.content(part_name) end def has_content?(part_name) Current.page.has_content?(part_name) end def repeater(part) part = Current.page.find_part(part)&.content unless part.is_a? Array part&.each do |repeater_content| repeater_content.view_context = self yield(repeater_content) end end def images(part) part = Current.page.find_part(part)&.content unless part.is_a? Array part&.each do |image| yield(image) end end def current_page Current.page end def current_account Current.account end end end
Version data entries
26 entries across 26 versions & 1 rubygems