diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-26 05:45:10 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-26 05:45:10 -0300 |
commit | 33f1a4ea693120fed248ee6e1164983e65810fd1 (patch) | |
tree | bee7fb5f5c3e2cdd530a1764e0f772646af5e125 /activerecord/lib | |
parent | 5b648356019d9c263f40a1f2091b2e1bbb2114e9 (diff) | |
parent | aeb7d7d0b380dc928fd804a16a5898adf84e5af4 (diff) | |
download | rails-33f1a4ea693120fed248ee6e1164983e65810fd1.tar.gz rails-33f1a4ea693120fed248ee6e1164983e65810fd1.tar.bz2 rails-33f1a4ea693120fed248ee6e1164983e65810fd1.zip |
Merge pull request #21775 from amitsuroliya/fix_column_alias_for
`column_alias_for` method is no more supporting *keys [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/calculations.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/calculations.rb b/activerecord/lib/active_record/relation/calculations.rb index c562bd9ce4..69f39e5ba9 100644 --- a/activerecord/lib/active_record/relation/calculations.rb +++ b/activerecord/lib/active_record/relation/calculations.rb @@ -338,7 +338,6 @@ module ActiveRecord # column_alias_for("sum(id)") # => "sum_id" # column_alias_for("count(distinct users.id)") # => "count_distinct_users_id" # column_alias_for("count(*)") # => "count_all" - # column_alias_for("count", "id") # => "count_id" def column_alias_for(keys) if keys.respond_to? :name keys = "#{keys.relation.name}.#{keys.name}" |