eivo-rails 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f02b1ae8c4ce69f94cb9b83278b66e08ebc95eb8
|
4
|
+
data.tar.gz: 546d5981f2cdd574cccee8b89aca1d1af045a310
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fef5f71d2087d2aed03c1f01457b093795374b75b990480f939835221db50c788e1788815c32aaf406e5e11ccae24c25cd4a922dcebdde43322f417449e1061
|
7
|
+
data.tar.gz: b33d8d6c4b633467c2b9f0816281a564ac3d39ca5bce69371e096035a304cab1bf3c1221efc833c4f9cddac1e679f2594138b0fdd4d6bef5337d0d47829a6f82
|
@@ -14,7 +14,9 @@ module EIVO
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def create
|
17
|
-
@object ||= collection.new
|
17
|
+
@object ||= collection.new
|
18
|
+
@object.assign_attributes(object_params_create)
|
19
|
+
|
18
20
|
if @object.save
|
19
21
|
render :new
|
20
22
|
else
|
@@ -28,7 +30,9 @@ module EIVO
|
|
28
30
|
|
29
31
|
def update
|
30
32
|
@object ||= collection
|
31
|
-
|
33
|
+
@object.assign_attributes(object_params_update)
|
34
|
+
|
35
|
+
if @object.save
|
32
36
|
render :edit
|
33
37
|
else
|
34
38
|
redirect_to action: :index
|
@@ -18,7 +18,9 @@ module EIVO
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def create
|
21
|
-
@object ||= collection.new
|
21
|
+
@object ||= collection.new
|
22
|
+
@object.assign_attributes(object_params_create)
|
23
|
+
|
22
24
|
if @object.save
|
23
25
|
redirect_to action: :index
|
24
26
|
else
|
@@ -32,6 +34,8 @@ module EIVO
|
|
32
34
|
|
33
35
|
def update
|
34
36
|
@object ||= collection.find(params[:id])
|
37
|
+
@object.assign_attributes(object_params_update)
|
38
|
+
|
35
39
|
if @object.update(object_params_update)
|
36
40
|
redirect_to action: :index
|
37
41
|
else
|
data/eivo-rails.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eivo-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan VUKOVICH-TRIBOUHARET
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|