aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-11-23 18:08:23 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-11-24 13:54:08 -0800
commita3ba60fd814a980cc929fcbe0f9d48fa4d0292e5 (patch)
tree6b9d0e087ff47c4bd4f323f945b43944cfa5b7eb /activerecord
parentfa2a5ae0339c90d023a7559e681a588219dc3903 (diff)
downloadrails-a3ba60fd814a980cc929fcbe0f9d48fa4d0292e5.tar.gz
rails-a3ba60fd814a980cc929fcbe0f9d48fa4d0292e5.tar.bz2
rails-a3ba60fd814a980cc929fcbe0f9d48fa4d0292e5.zip
reduce method calls
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/has_many_association.rb2
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