method

alias_type

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: TypeMap
alias_type(key, target_key) 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/type/type_map.rb, line 35
      def alias_type(key, target_key)
        register_type(key) do |sql_type|
          metadata = sql_type[/\(.*\)/, 0]
          lookup("#{target_key}#{metadata}")
        end
      end
Register or log in to add new notes.