lib/generators/sushi/templates/page.rb in sushifish-0.9.0 vs lib/generators/sushi/templates/page.rb in sushifish-0.9.6
- old
+ new
@@ -21,18 +21,9 @@
short_nav.blank? ? title : short_nav
end
def nav_path
name
- # if nominal
- # if children.count > 0
- # children.first.name
- # else
- # ""
- # end
- # else
- # name
- # end
end
scope :visible, where("visible = ?", true).order('id')
scope :home, where("page_type = ?", 'home')
scope :has_ancestors, where(:ancestry => nil)