Merge branch 'master' of git@github.com:bennibu/foodsoft

This commit is contained in:
Benjamin Meichsner 2009-10-12 14:44:48 +02:00
commit f34c307540
8 changed files with 59 additions and 11 deletions

View file

@ -31,6 +31,7 @@ class Page < ActiveRecord::Base
after_update :create_redirect
named_scope :non_redirected, :conditions => {:redirect => nil}
named_scope :no_parent, :conditions => {:parent_id => nil}
def self.permalink(title)
title.gsub(/[\/\.,;@\s]/, "_").gsub(/[\"\']/, "")