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 e5c580c commit b377877Copy full SHA for b377877
app/controllers/cms_controller.rb
@@ -2,6 +2,9 @@
2
class CmsController < ApplicationController
3
include Scrivito::ControllerActions
4
5
- Scrivito::Workspace.use(ENV["SCRIVITO_WORKSPACE"])
+ title ||= ENV['SCRIVITO_WORKSPACE'] || 'DEFAULT_WORKSPACE'
6
+ Scrivito::Workspace.create(title: title) unless Scrivito::Workspace.find_by_title(title)
7
+ Scrivito::Workspace.use(title)
8
+
9
LoginPage.create(title: 'ログイン')
10
end
0 commit comments