module MR::JsonField::FakeRecord::InstanceMethods
Public Instance Methods
save!()
click to toggle source
this mimics the `JsonField::Record` mixin, doing the same logic to ensure that the source fields match the json fields
Calls superclass method
# File lib/mr/json_field/fake_record.rb, line 20 def save! self.model.class.json_field_accessors.each do |field_name| self.model.send("#{field_name}=", self.model.send(field_name)) end super end