class FriendlyId::ActiveRecord2::SimpleModel::MultipleFinder

Public Instance Methods

find() click to toggle source
# File lib/friendly_id/active_record2/simple_model.rb, line 27
def find
  @results = with_scope(:find => options) { find_every :conditions => conditions }
  raise(::ActiveRecord::RecordNotFound, error_message) if @results.size != expected_size
  friendly_results.each { |result| result.friendly_id_status.name = result.to_param }
  @results
end