Module: SecondLevelCache::ActiveRecord::Core::ClassMethods
- Defined in:
- lib/second_level_cache/active_record/core.rb
Instance Method Summary collapse
Instance Method Details
#find_with_cache(*ids) ⇒ Object
15 16 17 18 |
# File 'lib/second_level_cache/active_record/core.rb', line 15 def find_with_cache(*ids) return all.find(ids.first) if ids.size == 1 && ids.first.is_a?(Integer) find_without_cache(*ids) end |