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:
authorTim Zallmann <tzallmann@gitlab.com>2017-10-03 13:21:02 +0300
committerTim Zallmann <tzallmann@gitlab.com>2017-10-04 15:27:09 +0300
commit6168e33e9e2f327f078e07b71c466dcc9fa9813a (patch)
treecfb89d1ac2631ba06236491e18bef8b1fb628acd /app/helpers/lazy_image_tag_helper.rb
parent1b752968757873434404a2bf82ea360ce829ec87 (diff)
Fixed Test
Diffstat (limited to 'app/helpers/lazy_image_tag_helper.rb')
-rw-r--r--app/helpers/lazy_image_tag_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/lazy_image_tag_helper.rb b/app/helpers/lazy_image_tag_helper.rb
index 60df16b3373..4def806f1c0 100644
--- a/app/helpers/lazy_image_tag_helper.rb
+++ b/app/helpers/lazy_image_tag_helper.rb
@@ -9,10 +9,10 @@ module LazyImageTagHelper
unless options.delete(:lazy) == false
options[:data] ||= {}
- unless options.delete(:use_original_source)
- options[:data][:src] = path_to_image(source)
- else
+ if options.delete(:use_original_source)
options[:data][:src] = source
+ else
+ options[:data][:src] = path_to_image(source)
end
options[:class] ||= ""
options[:class] << " lazy"