method

columns

rails latest stable - Class: ActiveRecord::Associations::JoinDependency

Method deprecated or moved

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

columns()
public

No documentation available.

# File activerecord/lib/active_record/associations/join_dependency.rb, line 58
      def columns
        join_parts.collect { |join_part|
          table = join_part.aliased_table
          join_part.column_names_with_alias.collect{ |column_name, aliased_name|
            table[column_name].as Arel.sql(aliased_name)
          }
        }.flatten
      end