Sha256: a642f7cadf6c1430811cbc9a40ce00f8f91226c7904b25270ec9715f83149acc
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
module Humpyard module Pages #### # Humpyard::Pages::StaticPage is a page only containing elements. class StaticPage < ::ActiveRecord::Base acts_as_humpyard_page :system_page => true def is_humpyard_dynamic_page? false end def site_map(locale) if page.in_sitemap { :url => page.human_url(:locale => locale), :lastmod => page.last_modified, :children => page.child_pages.map{ |p| p.content_data.site_map(locale) } } else nil end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
humpyard-0.0.1 | app/models/humpyard/pages/static_page.rb |