Merge branch 'master' of git@github.com:bennibu/foodsoft
This commit is contained in:
commit
f34c307540
8 changed files with 59 additions and 11 deletions
|
|
@ -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(/[\"\']/, "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue