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