app/commands/decidim/admin/create_area.rb in decidim-admin-0.10.1 vs app/commands/decidim/admin/create_area.rb in decidim-admin-0.11.0.pre1
- old
+ new
@@ -27,10 +27,12 @@
private
attr_reader :form
def create_area
- Area.create!(
+ Decidim.traceability.create!(
+ Area,
+ form.current_user,
name: form.name,
organization: form.organization,
area_type: form.area_type
)
end