Sha256: e3361ed356647a95f1edf24573ca32f800ab56c5ecee0495721afa7f337a1ce0
Contents?: true
Size: 818 Bytes
Versions: 21
Compression:
Stored size: 818 Bytes
Contents
class RailsPage < Page display_name 'Application' attr_accessor :breadcrumbs def find_by_url(url, live = true, clean = true) found_page = super if found_page.nil? || found_page.is_a?(FileNotFoundPage) url = clean_url(url) if clean self if url.starts_with?(self.url) else found_page end end def url=(path) @url = path end def url @url || super end def build_parts_from_hash!(content) content.each do |k, v| (part(k) || parts.build(name: k.to_s, filter_id: '')).content = v end end alias_method 'tag:old_breadcrumbs', 'tag:breadcrumbs' tag 'breadcrumbs' do |tag| if tag.locals.page.is_a?(RailsPage) && tag.locals.page.breadcrumbs tag.locals.page.breadcrumbs else render_tag('old_breadcrumbs', tag) end end end
Version data entries
21 entries across 21 versions & 1 rubygems