Class: Refinery::Pages::Finder::FinderByPath
- Inherits:
-
Object
- Object
- Refinery::Pages::Finder::FinderByPath
- Defined in:
- pages/lib/refinery/pages/finder.rb
Direct Known Subclasses
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(path) ⇒ FinderByPath
constructor
A new instance of FinderByPath.
Constructor Details
#initialize(path) ⇒ FinderByPath
Returns a new instance of FinderByPath.
92 93 94 |
# File 'pages/lib/refinery/pages/finder.rb', line 92 def initialize(path) @path = path end |
Instance Method Details
#find ⇒ Object
96 97 98 99 100 101 102 |
# File 'pages/lib/refinery/pages/finder.rb', line 96 def find if slugs_scoped_by_parent? FinderByScopedPath.new(path).find else FinderByUnscopedPath.new(path).find end end |