Flowdock
method

column_alias_for

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveRecord::Calculations::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

These similar methods exist in v4.0.2:

column_alias_for(*keys) private

Converts the given keys to the value that the database adapter returns as a usable column name:

  column_alias_for("users.id")                 # => "users_id"
  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"
Show source
Register or log in to add new notes.