Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 11:22:50 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 11:22:50 +0300
commit8589b4e137f50293952923bb07e2814257d7784d (patch)
tree45e96152606d36a906f5a8d54ad1c245987c3b9e /app/services/gravatar_service.rb
parentd02a22ba21f91d2aa4f9cf716dc3aefcf7e7495e (diff)
Init ApplicationSettings resource with defaults from config file
Diffstat (limited to 'app/services/gravatar_service.rb')
-rw-r--r--app/services/gravatar_service.rb2
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,