mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 05:04:35 +08:00
Fix initialization of default value for repositories limit [SCI-2301]
This commit is contained in:
parent
8ec643c54b
commit
1e5f9519ca
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,9 @@
|
|||
Rails.application.configure do
|
||||
# Maximum number of repositories per team allowed
|
||||
config.x.repositories_limit = ENV['REPOSITORIES_LIMIT'].to_i || 5
|
||||
config.x.repositories_limit =
|
||||
if ENV['REPOSITORIES_LIMIT']
|
||||
ENV['REPOSITORIES_LIMIT'].to_i
|
||||
else
|
||||
5
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue