module FriendlyId::ActiveRecord2::Finders::Multiple

Wraps finds for multiple records using an array of friendly_ids. @abstract

Attributes

friendly_ids[R]
results[R]
unfriendly_ids[R]

Public Class Methods

new(ids, model_class, options={}) click to toggle source
Calls superclass method
# File lib/friendly_id/active_record2/finders.rb, line 92
def initialize(ids, model_class, options={})
  @friendly_ids, @unfriendly_ids = ids.partition {|id| FriendlyId::Finders::Base.friendly?(id) }
  @unfriendly_ids = @unfriendly_ids.map {|id| id.class.respond_to?(:friendly_id_config) ? id.id : id}
  super
end