class Decidim::Meetings::MeetingsController
def update
def update enforce_permission_to :update, :meeting, meeting: meeting @form = meeting_form.from_params(params) UpdateMeeting.call(@form, current_user, meeting) do on(:ok) do |meeting| flash[:notice] = I18n.t("meetings.update.success", scope: "decidim.meetings") redirect_to Decidim::ResourceLocatorPresenter.new(meeting).path end on(:invalid) do flash.now[:alert] = I18n.t("meetings.update.invalid", scope: "decidim.meetings") render :edit end end end