mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-02 18:04:29 +08:00
Merge pull request #1134 from okriuchykhin/ok_SCI_2301
Fix initialization of default value for repositories limit [SCI-2301]
This commit is contained in:
commit
ac6c5de83c
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
|
||||
6
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue