mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
column_alias_for
method is no more supporting *keys [ci skip]
This commit is contained in:
parent
0f89e15e80
commit
aeb7d7d0b3
1 changed files with 0 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue