diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-05 18:36:08 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-05 18:36:08 -0800 |
commit | b942ae836e1fd846e7d59413b6e97ac8192c3069 (patch) | |
tree | 717b17b96d7e91b100d07e832e1ba75d9a123468 /activesupport/lib | |
parent | 8aa7b8695dd90989de699e050b61d755e3a61b19 (diff) | |
download | rails-b942ae836e1fd846e7d59413b6e97ac8192c3069.tar.gz rails-b942ae836e1fd846e7d59413b6e97ac8192c3069.tar.bz2 rails-b942ae836e1fd846e7d59413b6e97ac8192c3069.zip |
return value is never tested, so stop calling `presence`
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/dependencies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index 100b48312a..2fcbdb0d3b 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -227,7 +227,7 @@ module ActiveSupport #:nodoc: def load_dependency(file) if Dependencies.load? - Dependencies.new_constants_in(Object) { yield }.presence + Dependencies.new_constants_in(Object) { yield } else yield end |