Flowdock
method

alias_type

Importance_0
Ruby on Rails latest stable (v5.2.3) - 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 36
      def alias_type(key, target_key)
        register_type(key) do |sql_type, *args|
          metadata = sql_type[/\(.*\)/, 0]
          lookup("#{target_key}#{metadata}", *args)
        end
      end
Register or log in to add new notes.