Class: Refinery::Pages::Finder::FinderByTitle
- Inherits:
-
Refinery::Pages::Finder
- Object
- Refinery::Pages::Finder
- Refinery::Pages::Finder::FinderByTitle
- Defined in:
- pages/lib/refinery/pages/finder.rb
Instance Method Summary collapse
- #default_conditions ⇒ Object
-
#initialize(title) ⇒ FinderByTitle
constructor
A new instance of FinderByTitle.
Methods inherited from Refinery::Pages::Finder
by_path, by_path_or_id, by_slug, by_title, #find, with_mobility, #with_mobility
Constructor Details
#initialize(title) ⇒ FinderByTitle
Returns a new instance of FinderByTitle.
61 62 63 64 |
# File 'pages/lib/refinery/pages/finder.rb', line 61 def initialize(title) @title = title @conditions = default_conditions end |
Instance Method Details
#default_conditions ⇒ Object
66 67 68 |
# File 'pages/lib/refinery/pages/finder.rb', line 66 def default_conditions { :title => title } end |