activeadmin_addons 0.2.5 → 0.2.6

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
  SHA1:
3
- metadata.gz: 7993723b97d8bb9398ae4d1a988d8bd94dbf1312
4
- data.tar.gz: f332a21eee5b3e138b427f071f3704bee99e80f9
3
+ metadata.gz: 6b07ada844c58bb9c3d4ea159936036ec72bb3c6
4
+ data.tar.gz: 43034c21385e90504f8ac1a7a36e44b4e5cf24f7
5
5
  SHA512:
6
- metadata.gz: 7a8bc7bc32dd1aa0c6045ddef25dd216cd3f16b28e488a5614227d5d294b0205acbf219254876aaf552232d42bbdf0db31afa4bec3fd6c267c177ab7ab6e19d5
7
- data.tar.gz: 07245e165ce81e7ce0f950befdea4b7ace6e9da2c80806944a52bd803525919177d285473b8ccdc39c7276bd8b2a43bcccbe7f54e89c3abd865c2a759f5d6c68
6
+ metadata.gz: ff61a99492333012a68715dce2277752f44e27213df2cafee1ecd3aa2e1d446b16077119b684d101d5fc879e193fd48f4ac19a7848848981e782f81b15c57f0a
7
+ data.tar.gz: 38278fad95d29aad03517020c30fc72b7683314495ff0e36ab5d49f002f78109b23d372c88ecda5c2cfa411a0b7cc070a556f4369eed21b0d584c266fb25b418
@@ -21,9 +21,9 @@ module ActiveAdminAddons
21
21
  end
22
22
 
23
23
  def render
24
- options[:truncate] = options.fetch(:truncate, true)
25
- return nil if data.nil?
26
24
  raise 'you need to pass a paperclip attribute' unless data.respond_to?(:url)
25
+ options[:truncate] = options.fetch(:truncate, true)
26
+ return nil unless data.exists?
27
27
 
28
28
  icon = icon_for_filename(data.original_filename)
29
29
  icon_img = context.image_tag(icon, width: "20", height: "20", style: "margin-right: 5px; vertical-align: middle;")
@@ -34,7 +34,7 @@ module ActiveAdminAddons
34
34
  context.safe_concat(label_text)
35
35
  end
36
36
 
37
- context.link_to(label, data.url, { target: "_blank" }) if data.exists?
37
+ context.link_to(label, data.url, { target: "_blank" })
38
38
  end
39
39
  end
40
40
 
@@ -1,3 +1,3 @@
1
1
  module ActiveadminAddons
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_addons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus