class FriendlyId::ActiveRecord2::SimpleModel::SingleFinder

Public Instance Methods

find() click to toggle source
# File lib/friendly_id/active_record2/simple_model.rb, line 52
def find
  result = with_scope(:find => find_options) { find_initial options }
  raise ::ActiveRecord::RecordNotFound.new if friendly? && !result
  result.friendly_id_status.name = id if result
  result
end