Sha256: 67adb9d589e2d81bafd1f748823ac28c78f71df15a7f6c9ba1e7d76c9385c535

Contents?: true

Size: 406 Bytes

Versions: 11

Compression:

Stored size: 406 Bytes

Contents

module Scrivito

class UiController < ActionController::Base
  def index
    given_query = request.env['QUERY_STRING']
    query = "?#{given_query}" if given_query.present?
    @application_src = "/#{params['application_path']}#{query}"
    redirect_to @application_src unless editing_context.editor
  end

  private

  def editing_context
    EditingContextMiddleware.from_request(request)
  end
end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
scrivito_sdk-0.66.0 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.66.0.rc2 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.65.2 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.66.0.rc1 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.65.1 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.65.0 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.65.0.rc2 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.65.0.rc1 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.60.0 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.60.0.rc2 app/controllers/scrivito/ui_controller.rb
scrivito_sdk-0.60.0.rc1 app/controllers/scrivito/ui_controller.rb