diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 18:54:04 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 18:54:04 -0800 |
commit | 1d96d44da318faab8d213f330aebcecdbec52f5d (patch) | |
tree | f4353bb7f8c9f2de7f846687122afdfeaa13fe02 /activerecord/lib/active_record/associations | |
parent | d98cb5153dad97cde82ec91a1993043cfa9bc0e4 (diff) | |
download | rails-1d96d44da318faab8d213f330aebcecdbec52f5d.tar.gz rails-1d96d44da318faab8d213f330aebcecdbec52f5d.tar.bz2 rails-1d96d44da318faab8d213f330aebcecdbec52f5d.zip |
passing the ast to a table when the relation is a table
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/class_methods/join_dependency.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/class_methods/join_dependency.rb b/activerecord/lib/active_record/associations/class_methods/join_dependency.rb index 928e8152a5..d508c3b7aa 100644 --- a/activerecord/lib/active_record/associations/class_methods/join_dependency.rb +++ b/activerecord/lib/active_record/associations/class_methods/join_dependency.rb @@ -47,8 +47,6 @@ module ActiveRecord def count_aliases_from_table_joins(name) return 0 if !@table_joins || Arel::Table === @table_joins - return count_aliases_from_string(@table_joins.downcase, name) if String === @table_joins - @table_joins.grep(Arel::Nodes::Join).map { |join| right = join.right case right |