Sha256: 38a4676574d60bae7a24f0191c09bc7e8417e0f6e3d8adfc2300b6acb8850434
Contents?: true
Size: 408 Bytes
Versions: 22
Compression:
Stored size: 408 Bytes
Contents
:ruby image_html = if options[:image_html].present? options[:image_html] elsif resource.send(name).try(:variable?) { src: main_app.url_for(resource.send(name).variant(options[:variant_options])) } elsif resource.send(name).try(:previewable?) { src: main_app.url_for(resource.send(name).preview(options[:variant_options])) } else nil end - if image_html.present? %img{ image_html }
Version data entries
22 entries across 22 versions & 1 rubygems