Sha256: 9ed242b3ce5fdd8439e04fb13624f6d711d54aad3242f47706aca3c807ea8ff3
Contents?: true
Size: 316 Bytes
Versions: 2
Compression:
Stored size: 316 Bytes
Contents
module RetinaJs class Engine < ::Rails::Engine end end module ImageHelper def image_tag_with_at2x(name_at_1x, options={}) name_at_2x = name_at_1x.gsub(%r{\.\w+$}, '@2x\0') image_tag(name_at_1x, options.merge("data-rjs" => asset_path(name_at_2x))) end end ActionView::Base.send :include, ImageHelper
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
retinajs-rails-2.1.3 | lib/retinajs-rails.rb |
retinajs-rails-2.1.2 | lib/retinajs-rails.rb |