diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-05 17:29:45 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-05 17:29:45 +0300 |
commit | d2620faff92f235d5659ccdac0825cf18c7e2389 (patch) | |
tree | 14c9004c7c39b5a8fc986aaacdb22e92adc3728f /app/helpers/lazy_image_tag_helper.rb | |
parent | 27577e8e2b7bf18c0dbc402e5efad4905c5a154c (diff) |
Updates based on MR comments
Diffstat (limited to 'app/helpers/lazy_image_tag_helper.rb')
-rw-r--r-- | app/helpers/lazy_image_tag_helper.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/helpers/lazy_image_tag_helper.rb b/app/helpers/lazy_image_tag_helper.rb index 2b5e9a9ef57..c150c2927a9 100644 --- a/app/helpers/lazy_image_tag_helper.rb +++ b/app/helpers/lazy_image_tag_helper.rb @@ -9,11 +9,13 @@ module LazyImageTagHelper unless options.delete(:lazy) == false options[:data] ||= {} - options[:data][:src] = if options.delete(:use_original_source) - source - else - path_to_image(source) - end + #options[:data][:src] = if options.delete(:use_original_source) + # source + # else + # path_to_image(source) + # end + + options[:data][:src] = path_to_image(source) options[:class] ||= "" options[:class] << " lazy" |