zutils 0.3.3 → 0.3.4

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: 746f322d2ecd8b78ee15e6c46fa1d145b437866ee5d1623c89210051cda290b9
4
- data.tar.gz: 15af33d6a53712472ee7f2d175bd9cc438ce49588f61b480775f169202b7c218
3
+ metadata.gz: 160377b52e19d0d783a832a833e6d1b650f9f5b9c627e708555f55803ccda183
4
+ data.tar.gz: 1acfa0727db0c49be6ffc58f0668677396941faf375760a6b8769a7ef68aa3f6
5
5
  SHA512:
6
- metadata.gz: 03e8423fa26369f0243aec3f7b837d2cf648bfbb2ceca4bb68a64c17eb4490503aa3aff71e47a4a50b503c7ed0a638432068541980246b039c0cb40b9694fe06
7
- data.tar.gz: 5a8877315c5eb7a3fd36829b7d45a9f866c497d61fc6ed3e887dde90efb435dd81d313339f50e5677d735159470899eb5277452502f29fd5deb80aa3ed15caa1
6
+ metadata.gz: 82f3ee65bd3fc78f4f24de539f09d9037c6d7b9e358fcad0328fe92ef7eff30b7e874f40014938e1f5a5ef23412761a9bc77a931f1d2ebb49137dd9adeb11ce5
7
+ data.tar.gz: f8eda3f402e0417e08b804274c816542db33aad21c27d5b22f569d5de0345419fc4f66bddec48dcd0438d086851bff245a0daff56e6d7e8aed665f840e6f1c6c
data/.gitignore CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
@@ -9,7 +9,7 @@ $(document).ready(function () {
9
9
  selectizeCallback = callback;
10
10
 
11
11
  $("." + $(item).data('name') + "-modal").modal();
12
- $("#" + $(item).data('name') + "_cpf").val(input);
12
+ $("#" + $(item).data('name') + "_name").val(input);
13
13
  }
14
14
  });
15
15
 
File without changes
File without changes
File without changes
File without changes
@@ -5,6 +5,7 @@
5
5
  <% nested_resource ||= false %>
6
6
  <% excluded_columns ||= [] %>
7
7
  <% additional_columns ||= [] %>
8
+ <% additional_actions ||= [] %>
8
9
  <% box_class ||= 'primary' %>
9
10
 
10
11
  <div class='box box-<%= box_class %>'>
@@ -36,7 +37,9 @@
36
37
  </table>
37
38
  <% else %>
38
39
  <%= render 'shared/list', list: list, exceptions: exceptions, excluded_columns: excluded_columns,
39
- additional_columns: additional_columns, sort_fields: sort_fields, sort_all: sort_all %>
40
+ additional_columns: additional_columns, sort_fields: sort_fields, sort_all: sort_all,
41
+ additional_actions: additional_actions
42
+ %>
40
43
  <% if defined? list.total_pages %>
41
44
  <div class='col-md-4'>
42
45
  <%= page_entries_info list, entry_name: 'resultado(s)' %>
@@ -53,7 +56,7 @@
53
56
 
54
57
  <% unless controller_name == 'users' %>
55
58
  <div class="box-footer">
56
- <% if can? :new, list.klass %>
59
+ <% if can? :new, controller_name.singularize %>
57
60
  <% if nested_resource == true %>
58
61
  <% if parent_resource %>
59
62
  <%= 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 %>
File without changes
File without changes
File without changes
data/bin/console CHANGED
File without changes
data/bin/setup CHANGED
File without changes
data/lib/zutils/engine.rb CHANGED
File without changes
@@ -1,3 +1,3 @@
1
1
  module Zutils
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
data/lib/zutils.rb CHANGED
File without changes
data/zutils.gemspec CHANGED
File without changes
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.3.3
4
+ version: 0.3.4
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-03-15 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails