Sha256: 90403131e9540b0e0c38d6afa18b63da45640ac562b06455e321c9538a846dfc
Contents?: true
Size: 563 Bytes
Versions: 18
Compression:
Stored size: 563 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 end
Version data entries
18 entries across 18 versions & 1 rubygems