Sha256: 8011c74ee5fc3f7603367a80403c0dbf303de48cf637ab7aeedbd0f44dd113c2
Contents?: true
Size: 394 Bytes
Versions: 35
Compression:
Stored size: 394 Bytes
Contents
module ActiveRecord module TypeCaster class Map # :nodoc: def initialize(types) @types = types end def type_cast_for_database(attr_name, value) return value if value.is_a?(Arel::Nodes::BindParam) type = types.type_for_attribute(attr_name.to_s) type.serialize(value) end protected attr_reader :types end end end
Version data entries
35 entries across 35 versions & 4 rubygems