diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-08 00:22:50 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-08 00:22:50 -0800 |
commit | 8589b4e137f50293952923bb07e2814257d7784d (patch) | |
tree | 45e96152606d36a906f5a8d54ad1c245987c3b9e /config | |
parent | d02a22ba21f91d2aa4f9cf716dc3aefcf7e7495e (diff) | |
download | gitlab-ce-8589b4e137f50293952923bb07e2814257d7784d.tar.gz |
Init ApplicationSettings resource with defaults from config file
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/8_application_settings.rb | 12 | ||||
-rw-r--r-- | config/routes.rb | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/config/initializers/8_application_settings.rb b/config/initializers/8_application_settings.rb new file mode 100644 index 00000000000..c4706756b64 --- /dev/null +++ b/config/initializers/8_application_settings.rb @@ -0,0 +1,12 @@ +begin + unless ApplicationSetting.any? + ApplicationSetting.create( + default_projects_limit: Settings.gitlab['default_projects_limit'], + signup_enabled: Settings.gitlab['signup_enabled'], + signin_enabled: Settings.gitlab['signin_enabled'], + gravatar_enabled: Settings.gravatar['enabled'], + sign_in_text: Settings.extra['sign_in_text'], + ) + end +rescue +end diff --git a/config/routes.rb b/config/routes.rb index d36540024aa..7760f32dc36 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -109,6 +109,8 @@ Gitlab::Application.routes.draw do end end + resource :application_settings + root to: "dashboard#index" end |