diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-05 10:50:46 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-05 10:50:46 -0800 |
commit | 102255330bb6ffc5d0ca2888f206813445a29e44 (patch) | |
tree | bbc7dc93eda5cdb6f6cba1eef85bf35dc60a55e7 | |
parent | 90171ad833fa15a3030e15b7eb2043e1204d9db0 (diff) | |
download | rails-102255330bb6ffc5d0ca2888f206813445a29e44.tar.gz rails-102255330bb6ffc5d0ca2888f206813445a29e44.tar.bz2 rails-102255330bb6ffc5d0ca2888f206813445a29e44.zip |
no need to send a symbol to send()
-rw-r--r-- | activerecord/lib/active_record/associations/association_collection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb index 4bd8a8e2d2..bd27365b08 100644 --- a/activerecord/lib/active_record/associations/association_collection.rb +++ b/activerecord/lib/active_record/associations/association_collection.rb @@ -521,7 +521,7 @@ module ActiveRecord def include_in_memory?(record) if @reflection.is_a?(ActiveRecord::Reflection::ThroughReflection) - @owner.send(proxy_reflection.through_reflection.name.to_sym).any? do |source| + @owner.send(proxy_reflection.through_reflection.name).any? do |source| target = source.send(proxy_reflection.source_reflection.name) target.respond_to?(:include?) ? target.include?(record) : target == record end |