templus_models 1.5.6 → 1.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/crud/_form.html.erb +1 -1
- data/app/views/crud/_form_group.html.erb +1 -1
- data/lib/templus_models/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99f52716a849d463667864c870e7cd5ef3cd5e5c
|
4
|
+
data.tar.gz: 5b969fbfe97ca4a827ec640c7980380f637d228c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d1af166a02882d4e79900f7e41823d0f9a5fd3ca4a6c51a7038498af973419cdf2241e32f3b5f3f7668eecd3e27a0f99da5041d822ed4af21b362b6764f96a
|
7
|
+
data.tar.gz: 6265357d85bb123fe1e84591da59789c6cfb7c02a1a3ac6978fb8257ef998e0344bfe7ef24be198457aa380e43c001e11cafd1c702d0df57041b63e031d6ce33
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<% if field[:sf].present? && field[:sf][:grupo].present? %>
|
27
27
|
<%= render "/crud/form_group", f: f, key: field[:attribute], groups: field[:sf] %>
|
28
28
|
<% else %>
|
29
|
-
<% if @model.reflect_on_association(field[:attribute]).macro == :belongs_to && is_raro_crud(@model.reflect_on_association(field[:attribute]).class_name) && field[:sf][:add_registro].nil?%>
|
29
|
+
<% if @model.reflect_on_association(field[:attribute]).try(:macro) == :belongs_to && is_raro_crud(@model.reflect_on_association(field[:attribute]).class_name) && field[:sf][:add_registro].nil?%>
|
30
30
|
<%= render_plus_button(field,f,@model,@record) %>
|
31
31
|
<%else%>
|
32
32
|
<%= render_field(field,f,@model,@record) %>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<% if field[:sf].present? && field[:sf][:grupo].present? %>
|
15
15
|
<%= render "/crud/form_group", f: g, key: field[:attribute], groups: field[:sf] %>
|
16
16
|
<% else %>
|
17
|
-
<% if modelo.reflect_on_association(field[:attribute]).macro == :belongs_to && is_raro_crud(modelo.reflect_on_association(field[:attribute]).class_name) && field[:sf][:add_registro].nil?%>
|
17
|
+
<% if modelo.reflect_on_association(field[:attribute]).try(:macro) == :belongs_to && is_raro_crud(modelo.reflect_on_association(field[:attribute]).class_name) && field[:sf][:add_registro].nil?%>
|
18
18
|
<%= render_plus_button(field,g,modelo,f.object) %>
|
19
19
|
<%else%>
|
20
20
|
<%= render_field(field,g,modelo,f.object) %>
|