Class: FriendlyId::ActiveRecordAdapter::SluggedModel::CachedMultipleFinder

Inherits:
FriendlyId::ActiveRecordAdapter::SimpleModel::MultipleFinder show all
Defined in:
lib/friendly_id/active_record_adapter/slugged_model.rb

Overview

Performs a find a single friendly_id using the cached_slug column, if available. This is significantly faster, and can be used in all circumstances unless the :scope argument is present.

Instance Attribute Summary

Attributes included from Finders::Multiple

#friendly_ids, #results, #unfriendly_ids

Attributes included from Finders::Base

#ids, #model_class, #options, #scope

Instance Method Summary collapse

Methods inherited from FriendlyId::ActiveRecordAdapter::SimpleModel::MultipleFinder

#find

Methods included from FriendlyId::ActiveRecordAdapter::SimpleModel::SimpleFinder

#primary_key

Methods included from Finders::Multiple

#initialize

Methods included from Finders::Base

#find, friendly?, #initialize, unfriendly?

Instance Method Details

#columnObject

The column used to store the cached slug.



72
73
74
# File 'lib/friendly_id/active_record_adapter/slugged_model.rb', line 72

def column
  "#{table_name}.#{friendly_id_config.cache_column}"
end