class FriendlyId::ActiveRecord2::Finders::FinderProxy

FinderProxy is used to choose which finder class to instantiate; depending on the #model_class's friendly_id_config and the options passed into the constructor, it will decide whether to use simple or slugged finder, a single or multiple finder, and in the case of slugs, a cached or uncached finder.

Attributes

finder[R]
finder_class[R]
ids[R]
model_class[R]
options[R]

Public Class Methods

new(ids, model_class, options={}) click to toggle source
# File lib/friendly_id/active_record2/finders.rb, line 25
def initialize(ids, model_class, options={})
  @ids = ids
  @model_class = model_class
  @options = options
end

Public Instance Methods

method_missing(symbol, *args) click to toggle source
# File lib/friendly_id/active_record2/finders.rb, line 31
def method_missing(symbol, *args)
  finder.send(symbol, *args)
end