app/models/ecm/cms/page.rb in ecm_cms-0.0.2.pre vs app/models/ecm/cms/page.rb in ecm_cms-0.0.3.pre

- old
+ new

@@ -27,12 +27,10 @@ after_save :touch_navigation_items # , :if => Proc.new { |page| page.locale_changed? || page.pathname_changed? || page.basename_changed? } # validations validates :title, :presence => true - def home_page? -p self.pathname -p self.basename + def home_page? return self.pathname == '/' && self.basename == 'home' end def touch_navigation_items self.ecm_cms_navigation_items.map(&:update_url_form_page!)