lite-form 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +5 -2
- data/lib/lite/form/helpers/propagation.rb +1 -1
- data/lib/lite/form/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71ac196f9262cabced3c3e7bc7e588e7bce698a4abbd7aa5a956787335993179
|
4
|
+
data.tar.gz: 33a648e006ccd5af8431f0a5d079db55cf10aad688eedb4fe16f65fdba380c34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1bd7cf4427423d2d3f6958e3c39d02de7ccdca6b06918c671e3ef3102e9deedc77dad59cef12f5897040e36a6848d2af0d06eee27783128eef08a4c3c323a51
|
7
|
+
data.tar.gz: 629f2dc0ae0728b002434fb890caa5d9d3f5589800938e9358e114319a358559fe73dac299481ebbbf663b38a64f25d509e83a3751a0098fab87081f3c0fa4ef
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.0.2] - 2019-09-16
|
10
|
+
### Changed
|
11
|
+
- Changed create propagation to check errors instead of persistence
|
12
|
+
|
9
13
|
## [1.0.1] - 2019-09-12
|
10
14
|
### Fixed
|
11
15
|
- Fixed issue where create propagation was being returned without errors
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -77,8 +77,11 @@ class UserForm < ApplicationForm
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def update_action
|
80
|
-
|
81
|
-
|
80
|
+
ActiveRecord::Base.transaction do
|
81
|
+
user = User.find(attributes[:id])
|
82
|
+
update_and_return!(user, attributes.slice(:id))
|
83
|
+
update_and_return!(user.settings, tour: false)
|
84
|
+
end
|
82
85
|
end
|
83
86
|
|
84
87
|
def prepend_signature!
|
data/lib/lite/form/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|