method

resolve_column_aliases

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: TableMetadata

Method deprecated or moved

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

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.