Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removing dead code

  • Loading branch information...
commit 2adf78d335dd55ef39559e9e209f1ce96c948095 1 parent 4bc2ae0
@tenderlove tenderlove authored
View
5 activerecord/lib/active_record/associations/association_scope.rb
@@ -79,10 +79,9 @@ def add_constraints(scope)
conditions = self.conditions[i]
if reflection == chain.last
- column = column_for(table.table_name, key.to_s)
+ column = column_for(table.table_name, key.to_s)
bind_val = bind(scope, column, owner[foreign_key])
- scope = scope.where(table[key].eq(bind_val))
- #scope = scope.where(table[key].eq(owner[foreign_key]))
+ scope = scope.where(table[key].eq(bind_val))
if reflection.type
scope = scope.where(table[reflection.type].eq(owner.class.base_class.name))
Please sign in to comment.
Something went wrong with that request. Please try again.