app/controllers/scrivito/ui_controller.rb in scrivito_sdk-1.3.1 vs app/controllers/scrivito/ui_controller.rb in scrivito_sdk-1.4.0.rc1

- old
+ new

@@ -1,18 +1,21 @@ module Scrivito class UiController < ActionController::Base def index @application_src = application_src + if editing_context.editor @ui_config = UiConfig.new( editing_context: editing_context, resource: resource, return_to: params[:return_to], app_extension_tags: app_extension_tags, obj_models: Scrivito.models.objs, widget_models: Scrivito.models.widgets, ).to_json + + render 'scrivito/ui/index.html' else redirect_to @application_src end end