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 +4 -4
- data/app/views/shared/_form.html.erb +1 -1
- data/lib/zutils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72badd3ec764154e313471360dafcabe600d6153df08ea630ae3ce425aeea926
|
4
|
+
data.tar.gz: fba001c4d9484e97a8c66564c6a96c810b1e3ee82215cbabda1e1b86771adb72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 %>">
|
data/lib/zutils/version.rb
CHANGED