app/api/locomotive/api/resources/my_account_resource.rb in locomotivecms-3.0.0.rc5 vs app/api/locomotive/api/resources/my_account_resource.rb in locomotivecms-3.0.0.rc6
- old
+ new
@@ -37,10 +37,10 @@
my_account = current_account
authorize my_account, :update?
my_account_form = Forms::MyAccountForm.new(permitted_params[:account])
my_account.assign_attributes(my_account_form.serializable_hash)
- my_account.save
+ my_account.save!
present my_account, with: entity_klass
end