Sha256: f70549d67b9d42a8bc2b7b4a5638efe5c217aebc4011681ed3a3c5e20de91f4b
Contents?: true
Size: 302 Bytes
Versions: 11
Compression:
Stored size: 302 Bytes
Contents
- if resource.send(name).present? - begin - image_html = options[:image_html] || { src: main_app.url_for(resource.send(name).variant(options[:variant_options])) } - rescue ActiveStorage::InvariableError => e - image_html = { src: main_app.url_for(resource.send(name)) } %img{ image_html }
Version data entries
11 entries across 11 versions & 1 rubygems