aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/time/calculations.rb
diff options
context:
space:
mode:
authorSantosh Wadghule <santosh.wadghule@gmail.com>2015-03-30 04:06:10 +0530
committerSantosh Wadghule <santosh.wadghule@gmail.com>2015-03-31 22:54:42 +0530
commit4596e16f1a55629ed2934abcd4fc386641d32c30 (patch)
treee5b44f0fd71a3c88d7da6487cecd94e725fbf6d8 /activesupport/lib/active_support/core_ext/time/calculations.rb
parente2a96c071216d14659294a5a7645878656c30916 (diff)
downloadrails-4596e16f1a55629ed2934abcd4fc386641d32c30.tar.gz
rails-4596e16f1a55629ed2934abcd4fc386641d32c30.tar.bz2
rails-4596e16f1a55629ed2934abcd4fc386641d32c30.zip
Fix eager loading association using default_scope for finder methods.
- Eager loading was not working for the default_scope (class method) for 'find' & 'find_by' methods. - Fixed these by adding a new check 'respond_to?(:default_scope)'.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/time/calculations.rb')
0 files changed, 0 insertions, 0 deletions