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 20:53:35 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 20:53:35 +0300
commit57a65ede77b7bbae6e3b2a7aa52135de7b0c2f8e (patch)
tree3f1d72a04c3deefb8a911d013e686b036541af60 /app/services/gravatar_service.rb
parent8589b4e137f50293952923bb07e2814257d7784d (diff)
Improve application settings and write tests
Diffstat (limited to 'app/services/gravatar_service.rb')
-rw-r--r--app/services/gravatar_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/gravatar_service.rb b/app/services/gravatar_service.rb
index d8c9436aaa5..4bee0c26a68 100644
--- a/app/services/gravatar_service.rb
+++ b/app/services/gravatar_service.rb
@@ -1,6 +1,8 @@
class GravatarService
+ include Gitlab::CurrentSettings
+
def execute(email, size = nil)
- if ApplicationSetting.current.gravatar_enabled && email.present?
+ if current_application_settings.gravatar_enabled? && email.present?
size = 40 if size.nil? || size <= 0
sprintf gravatar_url,