Flowdock
method

type_cast_for_database

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: Map
type_cast_for_database(attr_name, value) 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_caster/map.rb, line 10
      def type_cast_for_database(attr_name, value)
        return value if value.is_a?(Arel::Nodes::BindParam)
        type = types.type_for_attribute(attr_name)
        type.serialize(value)
      end
Register or log in to add new notes.