aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2016-01-09 10:41:28 +0900
committeryui-knk <spiketeika@gmail.com>2016-01-09 10:41:28 +0900
commit16bf90364e754f40de921ec0ce2f88d1ec7645d9 (patch)
tree5428e44209b1aeecf51fed0afd4f6b25290df076 /activerecord/lib
parent34ac8a1e98e85b28fe3ee02a83c85cdaa4b77714 (diff)
downloadrails-16bf90364e754f40de921ec0ce2f88d1ec7645d9.tar.gz
rails-16bf90364e754f40de921ec0ce2f88d1ec7645d9.tar.bz2
rails-16bf90364e754f40de921ec0ce2f88d1ec7645d9.zip
[ci skip] `automatic_inverse_of` returns `false` not `nil` (document fix)
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/reflection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index a549b28f16..37e18626b5 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -545,7 +545,7 @@ module ActiveRecord
end
end
- # returns either nil or the inverse association name that it finds.
+ # returns either false or the inverse association name that it finds.
def automatic_inverse_of
if can_find_inverse_of_automatically?(self)
inverse_name = ActiveSupport::Inflector.underscore(options[:as] || active_record.name.demodulize).to_sym