diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-08-15 21:06:08 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-08-15 21:06:08 -0400 |
commit | 65bcc41f3e0a8b678e201e7f3d6a63c5b463fbe3 (patch) | |
tree | 19585b0ee8e01376f3a1e755febd2cb0d21bb3ab /config/initializers | |
parent | 0456dd72e26aaba6455e851260426d0156ba159a (diff) | |
download | gitlab-ce-65bcc41f3e0a8b678e201e7f3d6a63c5b463fbe3.tar.gz |
Allow disabling Gravatars in gitlab.yml settings
Closes #1237
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/1_settings.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index 5c5987a8857..8165d6c2eea 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -111,5 +111,9 @@ class Settings < Settingslogic def backup_keep_time app['backup_keep_time'] || 0 end + + def disable_gravatar? + app['disable_gravatar'] || false + end end end |