diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-23 18:08:23 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-24 13:54:08 -0800 |
commit | a3ba60fd814a980cc929fcbe0f9d48fa4d0292e5 (patch) | |
tree | 6b9d0e087ff47c4bd4f323f945b43944cfa5b7eb | |
parent | fa2a5ae0339c90d023a7559e681a588219dc3903 (diff) | |
download | rails-a3ba60fd814a980cc929fcbe0f9d48fa4d0292e5.tar.gz rails-a3ba60fd814a980cc929fcbe0f9d48fa4d0292e5.tar.bz2 rails-a3ba60fd814a980cc929fcbe0f9d48fa4d0292e5.zip |
reduce method calls
-rw-r--r-- | activerecord/lib/active_record/associations/has_many_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_association.rb b/activerecord/lib/active_record/associations/has_many_association.rb index 156279a67a..685d818ab3 100644 --- a/activerecord/lib/active_record/associations/has_many_association.rb +++ b/activerecord/lib/active_record/associations/has_many_association.rb @@ -108,7 +108,7 @@ module ActiveRecord end def we_can_set_the_inverse_on_this?(record) - !@reflection.inverse_of.nil? + @reflection.inverse_of end end end |