makwa 0.2.0 → 0.2.1
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/lib/makwa/returning_interaction.rb +2 -1
- data/lib/makwa/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: a01474a6d7d669f7d02f6ddec9ab653710b4215399e83a429a099b520122838b
|
4
|
+
data.tar.gz: 53d47eff5c8f981119af924a15f6d93a23435af552edb14ee66216e598979ec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e20a524264523fdbdc2715994a06ce34d52ca8761f9a8bff5b1a51d92e463a7f5d9850bc35a944c3b67898a82d5530c3512e70497137da571d2240623247e86e
|
7
|
+
data.tar.gz: 88833f8324ad7167e89af8b91d9c71b505b516b7502de9ac74fe70d213e5c69d6b586055f24bb1a89740d46edfc7400d051f2e2d49437cd7217c1e0d88a7b260
|
data/CHANGELOG.md
CHANGED
@@ -46,10 +46,11 @@ module Makwa
|
|
46
46
|
# Run validations (explicitly, don't rely on #valid?)
|
47
47
|
validate
|
48
48
|
if errors_any?
|
49
|
+
return_filter = self.class.instance_variable_get(:@return_filter)
|
49
50
|
# Add errors and values to the result object (so that the form can render them) and return the result object
|
50
51
|
return result
|
51
52
|
.tap { |r| r.errors.merge!(errors) }
|
52
|
-
.tap { |r| r.assign_attributes(inputs.except(
|
53
|
+
.tap { |r| r.assign_attributes(inputs.except(return_filter)) }
|
53
54
|
end
|
54
55
|
|
55
56
|
# Otherwise run the body of the interaction (along with any callbacks) ...
|
data/lib/makwa/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: makwa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jo Hund
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-11-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: active_interaction
|