Class: FriendlyId::ActiveRecordAdapter::SluggedModel::CachedMultipleFinder
- Inherits:
-
FriendlyId::ActiveRecordAdapter::SimpleModel::MultipleFinder
- Object
- FriendlyId::ActiveRecordAdapter::SimpleModel::MultipleFinder
- FriendlyId::ActiveRecordAdapter::SluggedModel::CachedMultipleFinder
- 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
-
#column ⇒ Object
The column used to store the cached slug.
Methods inherited from FriendlyId::ActiveRecordAdapter::SimpleModel::MultipleFinder
Methods included from FriendlyId::ActiveRecordAdapter::SimpleModel::SimpleFinder
Methods included from Finders::Multiple
Methods included from Finders::Base
#find, friendly?, #initialize, unfriendly?
Instance Method Details
#column ⇒ Object
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 |