Method: ActiveRecord::Associations::Association#marshal_load
- Defined in:
- lib/active_record/associations/association.rb
#marshal_load(data) ⇒ Object
187 188 189 190 191 |
# File 'lib/active_record/associations/association.rb', line 187 def marshal_load(data) reflection_name, ivars = data ivars.each { |name, val| instance_variable_set(name, val) } @reflection = @owner.class._reflect_on_association(reflection_name) end |