class Refinery::Pages::FinderBySlug
Attributes
slug[RW]
Public Class Methods
new(slug, conditions)
click to toggle source
# File lib/refinery/pages/finder.rb, line 77 def initialize(slug, conditions) @slug = slug @conditions = default_conditions.merge(conditions) end
Public Instance Methods
default_conditions()
click to toggle source
# File lib/refinery/pages/finder.rb, line 82 def default_conditions { :locale => Refinery::I18n.frontend_locales.map(&:to_s), :slug => slug } end