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: 72b24f52c568de5b1fc0fbd80b59b6ce1482146593b3484018c6c4a62030b8bd
4
- data.tar.gz: bd62bab6ba90ffa3d1d090c10bbeaea0e71a9e8ae270c96ce7b70eeb115fdaca
3
+ metadata.gz: df9c101da6236f8b5205be6f2f570d59bcb03acfb837ab31381dc830e264370a
4
+ data.tar.gz: 0b200328794db272842b6fb4360d7b760fcba55c47ac096cd55f6ceabd41fbe2
5
5
  SHA512:
6
- metadata.gz: 71b1f115245c181b04d4ca61b3cb49a7c320f333b74dec87c2f5d56391ddfacd1158572aca21a0f53a14f18aea27c0c0e34c1432d2d597b0b959e50d3c2d5b91
7
- data.tar.gz: 0bb037e2e4340ca2dfe99a350e687db8f76ef9f5ee759332ae1037c7f47009b75313e9e2fd02a5958511d46619404ceec6d87e403a4a81ea96d88ea02d8ffb9d
6
+ metadata.gz: de9449fb0a0db9ab9a3eb5076faf2664b53070f76dd856ccf7868ca20719c45f4fd0ec5724ca94a047fe5c53da8f92148f4b8d1dc190b4245a4aaea515ac9614
7
+ data.tar.gz: 519e7951b031dda9aba9b8610674a281e7e477e68b45715104fa42ac312c8dde7e62daea8a0cf206daee4b9f72e6cc77bd441085a506c062852f7a2cac1b5a79
@@ -84,8 +84,8 @@
84
84
  },
85
85
 
86
86
  close() {
87
- this.dialog = false;
88
87
  this.resetToDefault();
88
+ this.dialog = false;
89
89
  },
90
90
 
91
91
  errorHandler(error) {
@@ -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.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-12 00:00:00.000000000 Z
11
+ date: 2018-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails