Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/initializers/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class Constants
TINY_MCE_ASSET_REGEX = /data-mce-token="(\w+)"/

# Team name for default admin user
DEFAULT_PRIVATE_TEAM_NAME = 'My projects'.freeze
DEFAULT_PRIVATE_WORKSPACE_NAME = ENV.fetch('SCINOTE_DEFAULT_WORKSPACE_NAME', 'My projects').freeze

TEMPLATES_PROJECT_NAME = 'SciNote Examples'.freeze

Expand Down
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
admin_email,
admin_password,
true,
Constants::DEFAULT_PRIVATE_TEAM_NAME,
Constants::DEFAULT_PRIVATE_WORKSPACE_NAME,
[],
Extends::INITIAL_USER_OPTIONS
)
Expand Down
4 changes: 2 additions & 2 deletions lib/tasks/db_users.rake
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace :db do
user_hash['email'],
password,
true,
create_teams ? Constants::DEFAULT_PRIVATE_TEAM_NAME : nil,
create_teams ? Constants::DEFAULT_PRIVATE_WORKSPACE_NAME : nil,
team_ids
)

Expand Down Expand Up @@ -111,7 +111,7 @@ namespace :db do
email,
password,
true,
create_team ? Constants::DEFAULT_PRIVATE_TEAM_NAME : nil,
create_team ? Constants::DEFAULT_PRIVATE_WORKSPACE_NAME : nil,
team_ids
)

Expand Down