app/api/locomotive/api/resources/page_resource.rb in locomotivecms-3.1.0.rc3 vs app/api/locomotive/api/resources/page_resource.rb in locomotivecms-3.1.0
- old
+ new
@@ -100,9 +100,10 @@
end
end
put ':id' do
object_auth :update?
form = form_klass.new(current_site, page_params, page)
+
persist_from_form(form)
present page, with: entity_klass, site: current_site
end