rails_state_machine 1.1.1 → 1.1.2
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.5.1.pg.lock +1 -1
- data/Gemfile.5.2.pg.lock +1 -1
- data/lib/rails_state_machine/state_machine.rb +1 -0
- data/lib/rails_state_machine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12a75ae1120da43e7d488a16a8ce4432d27aa0533706b07a103e351009d06ee8
|
4
|
+
data.tar.gz: 5caa677e32ab319d2fd7d96581785760db68da444a6a1a1efc529c4203305f2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ba9b68bb748d2601a36245d06c7ebab4903337186e1317d822d6edf22e47bdcc97a5a542313de9de7b7a17eefec76280df92088785a8220a9ad862f2a370df6
|
7
|
+
data.tar.gz: bed69a6350a4a44320f7c65913b13624dadc7c9410b147882842a56ccb0ce92ceeb1e2d5c4a7a5a56a3fefee96a365beb12a58cf2cbcd39bd293837bd6997174
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
5
5
|
|
6
|
+
## 1.1.2 2019-03-22
|
7
|
+
|
8
|
+
### Compatible changes
|
9
|
+
|
10
|
+
- Fix bug where state was set to an older state when making a record invalid after successfully transitioning to a new state.
|
11
|
+
|
6
12
|
## 1.1.1 2019-03-22
|
7
13
|
|
8
14
|
### Compatible changes
|
data/Gemfile.5.1.pg.lock
CHANGED
data/Gemfile.5.2.pg.lock
CHANGED
@@ -127,6 +127,7 @@ module RailsStateMachine
|
|
127
127
|
before_save :register_state_events_for_callbacks
|
128
128
|
before_save { flush_state_event_callbacks(:before_save) }
|
129
129
|
after_save { flush_state_event_callbacks(:after_save) }
|
130
|
+
after_save :unset_next_state_machine_event
|
130
131
|
after_commit { flush_state_event_callbacks(:after_commit) }
|
131
132
|
end
|
132
133
|
end
|