Class: ActiveRecord::Associations::JoinDependency::Aliases
- Inherits:
-
Object
- Object
- ActiveRecord::Associations::JoinDependency::Aliases
- Defined in:
- lib/composite_primary_keys/associations/join_association.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#column_alias(node, column) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/composite_primary_keys/associations/join_association.rb', line 24 def column_alias(node, column) # CPK #@alias_cache[node][column] if column.kind_of?(Array) column.map do |a_column| @alias_cache[node][a_column] end else @alias_cache[node][column] end end |