Class: ActiveRecord::TypeCaster::Map
- Defined in:
- activerecord/lib/active_record/type_caster/map.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(types) ⇒ Map
constructor
A new instance of Map.
- #type_cast_for_database(attr_name, value) ⇒ Object
Constructor Details
#initialize(types) ⇒ Map
Returns a new instance of Map.
6 7 8 |
# File 'activerecord/lib/active_record/type_caster/map.rb', line 6 def initialize(types) @types = types end |