module FriendlyId::ActiveRecord2::SimpleModel::FinderMethods
The methods in this module override ActiveRecord's
find_one
and find_some
to add FriendlyId's
features.
Protected Instance Methods
find_one(id, options)
click to toggle source
Calls superclass method
# File lib/friendly_id/active_record2/simple_model.rb, line 72 def find_one(id, options) finder = Finders::FinderProxy.new(id, self, options) !finder.friendly? ? super : finder.find end
find_some(ids_and_names, options)
click to toggle source
# File lib/friendly_id/active_record2/simple_model.rb, line 77 def find_some(ids_and_names, options) Finders::FinderProxy.new(ids_and_names, self, options).find end