class Refinery::Pages::FinderByPath
Attributes
path[RW]
Public Class Methods
new(path)
click to toggle source
# File lib/refinery/pages/finder.rb, line 94 def initialize(path) @path = path end
Public Instance Methods
find()
click to toggle source
# File lib/refinery/pages/finder.rb, line 98 def find if slugs_scoped_by_parent? FinderByScopedPath.new(path).find else FinderByUnscopedPath.new(path).find end end
Private Instance Methods
by_slug(slug_path, conditions = {})
click to toggle source
# File lib/refinery/pages/finder.rb, line 113 def by_slug(slug_path, conditions = {}) Finder.by_slug(slug_path, conditions) end
slugs_scoped_by_parent?()
click to toggle source
# File lib/refinery/pages/finder.rb, line 109 def slugs_scoped_by_parent? ::Refinery::Pages.scope_slug_by_parent end