method

resolve_column_aliases

Importance_0
v5.2.3 - 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 13
    def resolve_column_aliases(hash)
      new_hash = hash.dup
      hash.each do |key, _|
        if (key.is_a?(Symbol)) && klass.attribute_alias?(key)
          new_hash[klass.attribute_alias(key)] = new_hash.delete(key)
        end
      end
      new_hash
    end
Register or log in to add new notes.