CHANGELOG.md in rails_state_machine-3.0.0 vs CHANGELOG.md in rails_state_machine-3.1.0

- old
+ new

@@ -7,10 +7,16 @@ ### Compatible changes ### Breaking changes +## 3.1.0 2025-01-21 + +### Compatible changes + +- Added support for Ruby 3.4 + ## 3.0.0 2024-06-21 ### Breaking changes - Changed: Setting the `<state_name>_event` to an invalid event adds an error to the attribute instead of raising a `TransitionNotFoundError` error. @@ -48,10 +54,10 @@ else flash.now[:error] = 'User could not be saved!' render(:edit, status: :unprocessable_entity) end rescue RailsStateMachine::Event::TransitionNotFoundError - flash.now[:error] = 'User could not be saved!' + flash.now[:error] = 'State event not valid anymore, maybe reload the page?' render(:edit, status: :unprocessable_entity) end # After upgrade you can either show a flash message or show an error message in your view for the <state>_event attribute def update