Method: Toaster::KeyValuePair#initialize
- Defined in:
- lib/toaster/model/key_value_pair.rb
#initialize(hash) ⇒ KeyValuePair
13 14 15 16 17 18 19 |
# File 'lib/toaster/model/key_value_pair.rb', line 13 def initialize(hash) if !hash[:type] type = IgnoreProperty.to_s end super(hash) @attributes_cache = {} if !@attributes_cache # fixes bug in active_record v4.1 end |