Class: Maglev::Editor::StyleController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Maglev::Editor::StyleController
- Defined in:
- app/controllers/maglev/editor/style_controller.rb
Instance Method Summary collapse
Methods included from ResourceIdConcern
Instance Method Details
#edit ⇒ Object
10 |
# File 'app/controllers/maglev/editor/style_controller.rb', line 10 def edit; end |
#update ⇒ Object
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 |