app/controllers/scrivito/ui_controller.rb in scrivito_sdk-1.16.0 vs app/controllers/scrivito/ui_controller.rb in scrivito_sdk-1.17.0.rc1
- old
+ new
@@ -3,18 +3,18 @@
class UiController < ActionController::Base
def index
@application_src = application_src
if editing_context.editor
- @ui_config = UiConfig.new(
+ @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,
lookup_context: lookup_context,
- )
+ })
render 'scrivito/ui/index.html'
else
redirect_to @application_src
end