class Page

def path

def path
  return '' if slug.blank?
  parent.present? ? clean_path("#{parent.path}/#{slug}") : clean_path(slug)
end