Class: Refinery::Pages::FinderByTitle

Inherits:
Finder
  • Object
show all
Defined in:
lib/refinery/pages/finder.rb

Instance Method Summary collapse

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_conditionsObject



68
69
70
# File 'lib/refinery/pages/finder.rb', line 68

def default_conditions
  { :title => title }
end