zutils 0.1.7 → 0.1.8

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: 7cd591e309504570d20ec1203ef3ef54d53ca7ebbe549622e315dedd015eaf5e
4
- data.tar.gz: f91124a491c228c0ce34d23c23f088934518ab6207ad0a69e3f7c0d2b8db584c
3
+ metadata.gz: 72badd3ec764154e313471360dafcabe600d6153df08ea630ae3ce425aeea926
4
+ data.tar.gz: fba001c4d9484e97a8c66564c6a96c810b1e3ee82215cbabda1e1b86771adb72
5
5
  SHA512:
6
- metadata.gz: 39facea00887ddd807209c1a82383ecab26572e794f9fc0e922ad28edc6857b6619b0bc0741d341e13c63084b3d87d26a1e61c3ea849c0823480165444558cd7
7
- data.tar.gz: f5b3b3a380964d2963292bd0d6c9d951a2cf0c22b5dc0f62c71c7abf780955cfcccec30dd30476173b749640a0c65d95c5c320b4ed3bb996a75a3b341f0246c3
6
+ metadata.gz: 6354ac15798e6bd9213a560fc74747da7138d97b2765fb17e9147f9869051eef6e37db19e4a9e00f3204ebbc4ce9334e640cf839d10bc83396f59695bf164d64
7
+ data.tar.gz: 2c49a5c5fd612a0bbc38b9a582581bd53c62aae44e0717bf68bdd4e52dcaaab46a0e526f1e546fa09e72d0c9f4a3e6db19495d06e534dbfb086b5700bb94eb07
@@ -6,7 +6,7 @@
6
6
  <% box_class ||= 'primary' %>
7
7
 
8
8
  <% form_fields ||= (object.class.respond_to?('form_fields') ? object.class.form_fields : {}) %>
9
- <% form_ordered_fields ||= (form_fields.nil? ? object.class.column_names : form_fields.keys) %>
9
+ <% form_ordered_fields ||= (form_fields.empty? ? object.class.column_names : form_fields.keys) %>
10
10
 
11
11
  <%= simple_form_for(nested_resource ? [parent_resource, object] : object) do |f| %>
12
12
  <div class="box box-<%= box_class %>">
@@ -1,3 +1,3 @@
1
1
  module Zutils
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana