class Maglev::Editor::StyleController
def edit; end
def edit; end
def set_style
def set_style @style = maglev_services.fetch_style.call end
def style_params
def style_params params.require(:style).permit! end
def update
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