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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca8d10def8df713619d43d33dfa10322e24ca25f
4
- data.tar.gz: 4b9cba5f9dbbd67c2db9133ac9b3e8e5ea05c350
3
+ metadata.gz: 99f52716a849d463667864c870e7cd5ef3cd5e5c
4
+ data.tar.gz: 5b969fbfe97ca4a827ec640c7980380f637d228c
5
5
  SHA512:
6
- metadata.gz: 873713f6d8c582ca2a78cb473ea95d9675f17b202e2c269aa1c8d5ac2cc8435fb765927f49b9e51f8221e6a1b2e72bd2d941bae5e4ba59b9e6651db6e52d2ec2
7
- data.tar.gz: 87a27c059b0c992b92021f4fca2483204657db8e87292d46cba8d4fe8426c405a50df6498c72bad7cc500c751010106e54d2772ea73277767a93e78140bff800
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) %>
@@ -1,3 +1,3 @@
1
1
  module TemplusModels
2
- VERSION = "1.5.6"
2
+ VERSION = "1.5.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: templus_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Sol