Sha256: 3c6440a664ddb6b527821776ea44a528345ceb1060f6592d355ff2b55445a4e2
Contents?: true
Size: 427 Bytes
Versions: 16
Compression:
Stored size: 427 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 request.env[EditingContextMiddleware::ENVKEY] || EditingContext.new end end end
Version data entries
16 entries across 16 versions & 1 rubygems