method

resolve_column_aliases

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: TableMetadata
resolve_column_aliases(hash) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/table_metadata.rb, line 14
    def resolve_column_aliases(hash)
      new_hash = hash.dup
      hash.each_key do |key|
        if key.is_a?(Symbol) && new_key = klass.attribute_aliases[key.to_s]
          new_hash[new_key] = new_hash.delete(key)
        end
      end
      new_hash
    end
Register or log in to add new notes.