app/controllers/decidim/meetings/admin/agenda_controller.rb in decidim-meetings-0.28.4 vs app/controllers/decidim/meetings/admin/agenda_controller.rb in decidim-meetings-0.29.0.rc1
- old
+ new
@@ -17,10 +17,10 @@
def create
enforce_permission_to(:create, :agenda, meeting:)
@form = form(MeetingAgendaForm).from_params(params, meeting:)
- CreateAgenda.call(@form, meeting) do
+ CreateAgenda.call(@form) do
on(:ok) do
flash[:notice] = I18n.t("agenda.create.success", scope: "decidim.meetings.admin")
redirect_to meetings_path
end