method

alias_type

Importance_0
v4.2.1 - Show latest stable - 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 34
      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.