We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd51a8 commit 6dc7651Copy full SHA for 6dc7651
app/controllers/scrivito_controller.rb
@@ -1,8 +1,10 @@
1
# -*- coding: utf-8 -*-
2
class ScrivitoController < ApplicationController
3
- include ScrivitoHelper
4
include Scrivito::ControllerActions
5
+ # TODO: There may be smarter detection
6
+ USING_SCRIVITO = true
7
+
8
title ||= ENV['SCRIVITO_WORKSPACE'] || 'DEFAULT_WORKSPACE'
9
Scrivito::Workspace.create(title: title) unless Scrivito::Workspace.find_by_title(title)
10
Scrivito::Workspace.use(title)
app/helpers/scrivito_helper.rb
0 commit comments