Class: Refinery::Pages::Finder::FinderByTitle

Inherits:
Refinery::Pages::Finder show all
Defined in:
pages/lib/refinery/pages/finder.rb

Instance Method Summary collapse

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_conditionsObject



66
67
68
# File 'pages/lib/refinery/pages/finder.rb', line 66

def default_conditions
  { :title => title }
end