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 88742f8 commit c07bc55Copy full SHA for c07bc55
app/controllers/scrivito_controller.rb
@@ -2,9 +2,6 @@
2
class ScrivitoController < ApplicationController
3
include Scrivito::ControllerActions
4
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/application_helper.rb
@@ -32,7 +32,6 @@ def kata_description
32
end
33
34
def using_scrivito?
35
36
- USING_SCRIVITO
+ !@obj.nil?
37
38
0 commit comments