class FriendlyId::ActiveRecord2::SluggedModel::MultipleFinder

Attributes

slugs[R]

Public Instance Methods

find() click to toggle source
# File lib/friendly_id/active_record2/slugged_model.rb, line 26
def find
  @results = with_scope(:find => find_options) { all options }.uniq
  raise ::ActiveRecord::RecordNotFound, error_message if @results.size != expected_size
  @results.each {|result| result.friendly_id_status.name = slug_for(result)}
end