rao-component 0.0.28.pre → 0.0.29.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 169ea6c500357a0cf70a260ad6ed21f8d0fa9bc95827b56a8290d23cedc31934
4
- data.tar.gz: 712e6dd87578193bd34216fcf5d507c95bc5bd2fa81581add22dd3000ade2916
3
+ metadata.gz: 7f9bbe640ddf55666d2de1df00689e64420b46aa4499febd7e397f602cc3d7f7
4
+ data.tar.gz: ab953048af524d10bdded68651db5f12134171344ba93ccf2e56f7675377cc04
5
5
  SHA512:
6
- metadata.gz: '062094efe53da508df332063ec9dd53c04dad169e58da7291f992274d6f4c2d1671e1be1d40e93eca297dfcc72a264baebb595b9cfed3cd4b3fd6d0a8c3e190f'
7
- data.tar.gz: 766c68d9b8a8662d6373700afcb2da0ad3dba5d8fafe21182eae11161b0cbf6a185a3d6c2a702edeb1e77a73def36bb689fc3ce0521ed5a113c3e55da4d4c84e
6
+ metadata.gz: 99762a5a5f6531ec417f610be0492162321c59523962bc54141c4a7d24ab66159c6303579033b4e6e09790eebff90ba222e56511cf000459a1835281833c7fdb
7
+ data.tar.gz: ffdf143d374fd89c809b280c4b458cfd4d23c56e96e0cc10528fe4ff01bfb413898ef017cdb76448506fad0d36262382bf8b607b3b386e6635a8dc68047d83b8
@@ -1,4 +1,4 @@
1
- - if resource.send(name).present?
1
+ - if resource.send(name).present? && resource.send(name).respond_to?(:variant)
2
2
  - begin
3
3
  - image_html = options[:image_html] || { src: main_app.url_for(resource.send(name).variant(options[:variant_options])) }
4
4
  - rescue ActiveStorage::InvariableError => e
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rao-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.28.pre
4
+ version: 0.0.29.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-11 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails