Class: Humpyard::Pages::VirtualPage
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Humpyard::Pages::VirtualPage
- Defined in:
- app/models/humpyard/pages/virtual_page.rb
Instance Method Summary collapse
- #is_humpyard_dynamic_page? ⇒ Boolean
- #is_humpyard_virtual_page? ⇒ Boolean
- #site_map(locale) ⇒ Object
Instance Method Details
#is_humpyard_dynamic_page? ⇒ Boolean
8 9 10 |
# File 'app/models/humpyard/pages/virtual_page.rb', line 8 def is_humpyard_dynamic_page? false end |
#is_humpyard_virtual_page? ⇒ Boolean
12 13 14 |
# File 'app/models/humpyard/pages/virtual_page.rb', line 12 def is_humpyard_virtual_page? true end |
#site_map(locale) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/models/humpyard/pages/virtual_page.rb', line 16 def site_map(locale) if page.in_sitemap { :url => page.human_url(:locale => locale), :lastmod => page.last_modified, :hidden => true, :children => page.child_pages.map{ |p| p.content_data.site_map(locale) } } else nil end end |