bootbox_crud 0.1.1.3 → 0.1.1.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
  SHA1:
3
- metadata.gz: 365a0414e09ca774127236555aeb34006f264e11
4
- data.tar.gz: fe0203efc8f5cebeeededed91635acaa7e1161b1
3
+ metadata.gz: 2151d8412c22e57b5db6843096a39f506488ee2e
4
+ data.tar.gz: acf811760e07a07c9412785c43f2ee79b00f4420
5
5
  SHA512:
6
- metadata.gz: 2ee89d85ebdbd98eee9618275586718049328ed98cdba29b479c785f709d25fc1ced2207e2bf1841c090f7b5b4f4ca2a79b6cafa8836f46b4bd6c2418a63c31d
7
- data.tar.gz: 39a3a0e60dbc9405d52a0b197dc9cf581c2c21746937801424c611567e61cf474dcbd3a4ec3e6e40be88c996467db502053a8e8fbc750ec95dbc444d9cf6d29e
6
+ metadata.gz: e85e6b4f5dca7a58ff176156ead11422f59ff16134aa5ee9332fa839a3ba20340c585c9e3530a5d74d80ed6d61ee1328fb0690dc546deb906e941e54600f7516
7
+ data.tar.gz: 4f55f8e0c2551fb184ffbb51e60cf2b24f588f2f0306140dcab533e4b5233f4f25e994d72aae14151da8835270b6c65d3eabc20fb56e8710361451b6cf9d950b
@@ -1,5 +1,5 @@
1
1
  module BootboxCrud
2
2
  module Rails
3
- VERSION = "0.1.1.3"
3
+ VERSION = "0.1.1.4"
4
4
  end
5
5
  end
@@ -28,10 +28,10 @@
28
28
  <% if has_name -%>
29
29
  %td
30
30
  = <%= singular_table_name %>.id
31
- %td{data:{value: <%= singular_table_name %>.name.gsub(' ', '').downcase, entity: '<%= singular_table_name.capitalize %>', action: 'show', id: (<%= singular_table_name %>.id) }}
31
+ %td{data:{value: <%= singular_table_name %>.name.gsub(' ', '').downcase, entity: '<%= class_name %>', action: 'show', id: (<%= singular_table_name %>.id) }}
32
32
  = link_to <%= singular_table_name %>.name, '#'
33
33
  <% else -%>
34
- %td{data:{ entity: '<%= singular_table_name.capitalize %>', action: 'show', id: (<%= singular_table_name %>.id) }}
34
+ %td{data:{ entity: '<%= class_name %>', action: 'show', id: (<%= singular_table_name %>.id) }}
35
35
  = link_to <%= singular_table_name %>.id, '#'
36
36
  <% end -%>
37
37
 
@@ -40,12 +40,12 @@
40
40
  %td= <%= singular_table_name %>.<%= attribute.name %>
41
41
  <% end -%>
42
42
  %td
43
- = link_to '#', :class => 'btn-sm btn-primary', data: { entity: '<%= singular_table_name.capitalize %>', action: 'update', id: (<%= singular_table_name %>.id) } do
43
+ = link_to '#', :class => 'btn-sm btn-primary', data: { entity: '<%= class_name %>', action: 'update', id: (<%= singular_table_name %>.id) } do
44
44
  %i.fa.fa-edit
45
45
  EDIT
46
46
 
47
47
  %hr
48
48
  %p
49
- = link_to '#', :class => 'btn btn-success', data: { entity: '<%= singular_table_name.capitalize %>', action: 'create' } do
49
+ = link_to '#', :class => 'btn btn-success', data: { entity: '<%= class_name %>', action: 'create' } do
50
50
  %i.fa.fa-plus
51
51
  = 'New <%= human_name %>'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootbox_crud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.3
4
+ version: 0.1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiri Kaipr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties