zutils 0.2.7 → 0.2.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: 0e2d69c2da15caf145355c2c8c65eaa556ad46dc8e8d9e2bf7bd9b3830d3d95f
4
- data.tar.gz: 3db052d159a7be184cb124a890d53ce9a23492fa64ac73f8bce6ec51ab0794c0
3
+ metadata.gz: 2d244d56656907c4b603037d1bbe6a75b2e38d22f15096aacb3b6ec1ec83012a
4
+ data.tar.gz: 57b3abd0e46f01b9c1ec1bf585a8692a5a94966950950945351af3654aefce3e
5
5
  SHA512:
6
- metadata.gz: ced26faf4d38770bd0a40b6ebb677ce7de8795f50099680446d527a6e277d41786a521bd7c255bedb0e3ccba7326f2ed1c4b86b51836fa62893898c8e1c56e0a
7
- data.tar.gz: ada509e3eb65c4321f3fa82f541b4df864fde2401bcfeedce8fe666113f8a848110eab179df361a1679a9e74e579d471a38e7c8ecef82e64ab52196eed1fb106
6
+ metadata.gz: dbd20eb88e07a7bc2a79c1df628c4d610f367e9ec1511980fd524b11f7f7682014e2ce36e84f79f890866e355ec970aecf39725fb4fce888b1918ac373953a1b
7
+ data.tar.gz: 78f383553e38ffe2d4763c3e0b4b3c5a50aa8c5c2356430e736903740e0671225980f68e00f64f592885020752d845b3b88bbf1bd7d71c29e16684f4e5848638
@@ -10,7 +10,7 @@
10
10
  <div class='box box-<%= box_class %>'>
11
11
  <div class="box-header with-border">
12
12
  <h3 class="box-title">
13
- <%= list.proxy_association.klass.model_name.human.pluralize %>
13
+ <%= list.klass.model_name.human.pluralize %>
14
14
  </h3>
15
15
  </div>
16
16
  <div class="box-body">
@@ -56,13 +56,13 @@
56
56
  <% if can? :new, controller_name.singularize %>
57
57
  <% if nested_resource == true %>
58
58
  <% if parent_resource %>
59
- <%= link_to eval("new_#{parent_resource.class.model_name.singular}_#{list.proxy_association.klass.model_name.singular}_path(#{parent_resource.id})"), class: "btn btn-#{box_class}" do %>
60
- <%= t('.new', default: t("helpers.links.new")) %> <%= list.proxy_association.klass.model_name.human %> <i class='fa fa-plus'></i>
59
+ <%= link_to eval("new_#{parent_resource.class.model_name.singular}_#{list.klass.model_name.singular}_path(#{parent_resource.id})"), class: "btn btn-#{box_class}" do %>
60
+ <%= t('.new', default: t("helpers.links.new")) %> <%= list.klass.model_name.human %> <i class='fa fa-plus'></i>
61
61
  <% end %>
62
62
  <% end %>
63
63
  <% else %>
64
- <%= link_to eval("new_#{list.proxy_association.klass.model_name.singular}_path"), class: "btn btn-#{box_class}" do %>
65
- <%= t('.new', default: t("helpers.links.new")) %> <%= list.proxy_association.klass.model_name.human %> <i class='fa fa-plus'></i>
64
+ <%= link_to eval("new_#{list.klass.model_name.singular}_path"), class: "btn btn-#{box_class}" do %>
65
+ <%= t('.new', default: t("helpers.links.new")) %> <%= list.klass.model_name.human %> <i class='fa fa-plus'></i>
66
66
  <% end %>
67
67
  <% end %>
68
68
  <% end %>
@@ -16,7 +16,7 @@
16
16
  <i class="fa fa-plus"></i> Cadastrar
17
17
  <% end %>
18
18
  <% else %>
19
- <%= link_to eval_with_rescue("new_#{object.class.model_name.plural}_path"), class: "btn btn-#{box_class} btn-xs", data: { toggle: 'tooltip', placement: 'top', title: 'Cadastrar' } do %>
19
+ <%= link_to eval("new_#{object.class.model_name.singular}_path"), class: "btn btn-#{box_class} btn-xs", data: { toggle: 'tooltip', placement: 'top', title: 'Cadastrar' } do %>
20
20
  <i class="fa fa-plus"></i> Cadastrar
21
21
  <% end %>
22
22
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Zutils
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-12 00:00:00.000000000 Z
11
+ date: 2019-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails