Codebase list ruby-state-machines / run/d8fcb866-7fb3-4a54-81d7-cc8ad06b4823/main Changelog.md
run/d8fcb866-7fb3-4a54-81d7-cc8ad06b4823/main

Tree @run/d8fcb866-7fb3-4a54-81d7-cc8ad06b4823/main (Download .tar.gz)

Changelog.md @run/d8fcb866-7fb3-4a54-81d7-cc8ad06b4823/mainraw · history · blame

## 0.5.0

*   Fix states being evaluated with wrong `owner_class` context

*   Fixed state machine false duplication

*   Fixed inconsistent use of :use_transactions

*   Namespaced integrations are not registered by default anymore

*   Pass `static: false` in case you don't want initial states to be forced. e.g.

    ```ruby
    # will set the initial machine state
    @machines.initialize_states(@object)

    # optionally you can pass the attributes to have that as the initial state
    @machines.initialize_states(@object, {}, { state: 'finished' })

    # or pass set `static` to false if you want to keep the `object.state` current value
    @machines.initialize_states(@object, { static: false })
    ```