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

Version Path
rao-component-0.0.28.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.27.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.26.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.25.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.24.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.23.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.22.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.21.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.20.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.19.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml
rao-component-0.0.18.pre app/views/rao/component/table/body_cells/_thumbnail.html.haml