alchemy-ajax-form 1.1.0 → 1.1.1

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: 4802d959a964e57c819c0cf72c81e9c99d298c45
4
- data.tar.gz: defa090c069a91d5a3482d19ff606a0d18c91c4d
3
+ metadata.gz: 3887f4486e2db4477b08d50e2e4abf5dbd7007de
4
+ data.tar.gz: 227be55b2539a66a34cd7754a56b5f836a24fe60
5
5
  SHA512:
6
- metadata.gz: 0f9631c383b34fc1461fdbe39ee192635b3fa9919f5e4281e2eb19faa9d87382aa4d415d33be8470ce2e592b3e0f44a8687504b017961b4ae3cdf8eacfdf8a8b
7
- data.tar.gz: e0e7063fb6ebca6adb7397d2601c7ed55ab9db9bbc1ea985dccbbfd10189dd14d3c220920580d0ddb95982a4f49797b4158d4ffd998692e80e92f13c1cbdd9e4
6
+ metadata.gz: b268670c280ee6f5aab25d5b0915a7bee26c26fccc7cfd45f14b935011c05c4bc242792ec2119ac9529c219c0cb1153a0497f75ef61fd9b161d45e5413c39565
7
+ data.tar.gz: 30cd28c9352154610c0295cac22628814b6e5b903d4cb945afb0cbcaa1307ac081263cb47fd5da6245c6fa5cc04dbd3784920e0806192286383e6a5feadb1548
@@ -1,12 +1,12 @@
1
-
2
1
  <% resource_handler.attributes.each do |attribute| %>
3
- <div class="attribute_row">
4
- <div class="labelfield">
5
- <%= @resource.class.human_attribute_name(attribute[:name].to_sym) %>
6
- </div>
7
- <div class="valuefield">
8
- <%= render_attribute(@resource, attribute) %>
9
- </div>
10
- </div>
11
-
2
+ <% if not @resource.send(attribute[:name]).blank? %>
3
+ <div class="attribute_row">
4
+ <div class="labelfield">
5
+ <%= @resource.class.human_attribute_name(attribute[:name].to_sym) %>
6
+ </div>
7
+ <div class="valuefield">
8
+ <%= render_attribute(@resource, attribute) %>
9
+ </div>
10
+ </div>
11
+ <% end %>
12
12
  <% end %>
@@ -1,7 +1,7 @@
1
1
  module Alchemy
2
2
  module Ajax
3
3
  module Form
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-ajax-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Baccanelli