aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/class_cache_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-03-19 02:44:51 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-03-19 02:44:51 +0900
commit59db5f22927135639d1fd77ea496ef1fb1679429 (patch)
treec1bd1cd385b08f85311bd686442ece6de13aa565 /activesupport/test/class_cache_test.rb
parentcf4f05a7d4a2051cf3593bc7c3a6a216e74e797a (diff)
downloadrails-59db5f22927135639d1fd77ea496ef1fb1679429.tar.gz
rails-59db5f22927135639d1fd77ea496ef1fb1679429.tar.bz2
rails-59db5f22927135639d1fd77ea496ef1fb1679429.zip
Use `load` rather than `collect` for force loading
Since b644964b `ActiveRecord::Relation` includes `Enumerable` so delegating `collect`, `all?`, and `include?` are also unneeded. `collect` without block returns `Enumerable` without preloading by that. We should use `load` rather than `collect` for force loading.
Diffstat (limited to 'activesupport/test/class_cache_test.rb')
0 files changed, 0 insertions, 0 deletions