Class: SecondLevelCache::RecordRelation
- Inherits:
-
Array
- Object
- Array
- SecondLevelCache::RecordRelation
- Defined in:
- lib/second_level_cache/record_relation.rb
Instance Method Summary collapse
-
#load(&_block) ⇒ Object
A fake Array for fix ActiveRecord 5.0.1 records_for method changed bug.
Instance Method Details
#load(&_block) ⇒ Object
A fake Array for fix ActiveRecord 5.0.1 records_for method changed bug
in ActiveRecord 5.0.0 called:
records_for(slice)
but 5.0.1 called:
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/associations/preloader/association.rb#L118
records_for(slice).load(&block)
15 16 17 |
# File 'lib/second_level_cache/record_relation.rb', line 15 def load(&_block) self end |