class FriendlyId::ActiveRecord2::SluggedModel::SingleFinder

Public Instance Methods

find() click to toggle source
# File lib/friendly_id/active_record2/slugged_model.rb, line 88
def find
  @result = with_scope({:find => find_options}) { find_initial options }
  handle_friendly_result if friendly?
  @result
rescue ::ActiveRecord::RecordNotFound => @error
  friendly_id_config.scope? ? raise_scoped_error : (raise @error)
end