templus_models 1.5.5 → 1.5.6

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: 645a6997bc5923f9f20dc3a97dba19a737e1c847
4
- data.tar.gz: 13baccd965afa06ac28ee7b414fcd5456b5cd130
3
+ metadata.gz: ca8d10def8df713619d43d33dfa10322e24ca25f
4
+ data.tar.gz: 4b9cba5f9dbbd67c2db9133ac9b3e8e5ea05c350
5
5
  SHA512:
6
- metadata.gz: 050db1a65973e7b67e9b6843de353c37a4079057c716f9bca19843e38b645c81b7b72eaef5e409351c750fb4fb86af9d2d38a0ac7e4e6c6b0dbd111cd6ef0902
7
- data.tar.gz: 14aeba7451d36a7b316cfb764a9e85186b742aa7b5f810afdf9535da848304090e617b7a3d681bbb8b8e3b23080ee84aa86df6b2b7aefb98e563330d74f31306
6
+ metadata.gz: 873713f6d8c582ca2a78cb473ea95d9675f17b202e2c269aa1c8d5ac2cc8435fb765927f49b9e51f8221e6a1b2e72bd2d941bae5e4ba59b9e6651db6e52d2ec2
7
+ data.tar.gz: 87a27c059b0c992b92021f4fca2483204657db8e87292d46cba8d4fe8426c405a50df6498c72bad7cc500c751010106e54d2772ea73277767a93e78140bff800
@@ -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]).class == ActiveRecord::Reflection::BelongsToReflection && is_raro_crud(@model.reflect_on_association(field[:attribute]).class_name) && field[:sf][:add_registro].nil?%>
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?%>
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]).class == ActiveRecord::Reflection::BelongsToReflection && is_raro_crud(modelo.reflect_on_association(field[:attribute]).class_name) && field[:sf][:add_registro].nil?%>
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?%>
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.5"
2
+ VERSION = "1.5.6"
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.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Sol