Class: Maglev::Editor::StyleController

Inherits:
BaseController show all
Defined in:
app/controllers/maglev/editor/style_controller.rb

Instance Method Summary collapse

Methods included from ResourceIdConcern

#resource_id

Instance Method Details

#editObject



10
# File 'app/controllers/maglev/editor/style_controller.rb', line 10

def edit; end

#updateObject



12
13
14
15
16
17
18
# File 'app/controllers/maglev/editor/style_controller.rb', line 12

def update
  maglev_services.persist_style.call(new_style: style_params, lock_version: params[:lock_version])

  redirect_to edit_editor_style_path(maglev_editing_route_context),
              notice: flash_t(:success),
              status: :see_other
end