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 /app/services/gravatar_service.rb | |
parent | d02a22ba21f91d2aa4f9cf716dc3aefcf7e7495e (diff) | |
download | gitlab-ce-8589b4e137f50293952923bb07e2814257d7784d.tar.gz |
Init ApplicationSettings resource with defaults from config file
Diffstat (limited to 'app/services/gravatar_service.rb')
-rw-r--r-- | app/services/gravatar_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/gravatar_service.rb b/app/services/gravatar_service.rb index a69c7c78377..d8c9436aaa5 100644 --- a/app/services/gravatar_service.rb +++ b/app/services/gravatar_service.rb @@ -1,6 +1,6 @@ class GravatarService def execute(email, size = nil) - if gravatar_config.enabled && email.present? + if ApplicationSetting.current.gravatar_enabled && email.present? size = 40 if size.nil? || size <= 0 sprintf gravatar_url, |