vue_crud-generator 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df9c101da6236f8b5205be6f2f570d59bcb03acfb837ab31381dc830e264370a
|
4
|
+
data.tar.gz: 0b200328794db272842b6fb4360d7b760fcba55c47ac096cd55f6ceabd41fbe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de9449fb0a0db9ab9a3eb5076faf2664b53070f76dd856ccf7868ca20719c45f4fd0ec5724ca94a047fe5c53da8f92148f4b8d1dc190b4245a4aaea515ac9614
|
7
|
+
data.tar.gz: 519e7951b031dda9aba9b8610674a281e7e477e68b45715104fa42ac312c8dde7e62daea8a0cf206daee4b9f72e6cc77bd441085a506c062852f7a2cac1b5a79
|
@@ -10,6 +10,8 @@ module VueJs
|
|
10
10
|
template "crud_component.vue.tt", "app/javascript/components/#{plural_name}_crud.vue"
|
11
11
|
end
|
12
12
|
|
13
|
+
private
|
14
|
+
|
13
15
|
def attributes_names_without_id
|
14
16
|
attributes_without_id.map(&:name)
|
15
17
|
end
|
@@ -26,8 +28,6 @@ module VueJs
|
|
26
28
|
@primary_key_name ||= find_primary_key.name
|
27
29
|
end
|
28
30
|
|
29
|
-
private
|
30
|
-
|
31
31
|
def find_primary_key
|
32
32
|
attributes.find {|attribute|
|
33
33
|
attribute.type == :primary_key
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vue_crud-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Senya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|