Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing column alias resolution

  • Loading branch information...
commit fd97f356357ef7053eb8615cd039efb5fa09cc44 1 parent 91d3d00
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation/query_methods.rb
View
2  activerecord/lib/active_record/relation/query_methods.rb
@@ -922,8 +922,8 @@ def build_where(opts, other = [])
[@klass.send(:sanitize_sql, other.empty? ? opts : ([opts] + other))]
when Hash
- temp_opts = opts.dup
opts = PredicateBuilder.resolve_column_aliases(klass, opts)
+ temp_opts = opts.dup
attributes = @klass.send(:expand_hash_conditions_for_aggregates, opts)
create_binds(temp_opts)
Please sign in to comment.
Something went wrong with that request. Please try again.