summaryrefslogtreecommitdiff
path: root/app/helpers/lazy_image_tag_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/lazy_image_tag_helper.rb')
-rw-r--r--app/helpers/lazy_image_tag_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/lazy_image_tag_helper.rb b/app/helpers/lazy_image_tag_helper.rb
index 2c5619ac41b..aea1fcc7e91 100644
--- a/app/helpers/lazy_image_tag_helper.rb
+++ b/app/helpers/lazy_image_tag_helper.rb
@@ -9,7 +9,11 @@ module LazyImageTagHelper
unless options.delete(:lazy) == false
options[:data] ||= {}
- options[:data][:src] = path_to_image(source)
+ unless options.delete(:use_original_source) == true
+ options[:data][:src] = path_to_image(source)
+ else
+ options[:data][:src] = source
+ end
options[:class] ||= ""
options[:class] << " lazy"