state_machines-activerecord
state_machines-activerecord copied to clipboard
StateMachines Active Record Integration
In `db/schema.rb`: ``` t.string "state", default: "active", null: false ``` I would expect that: `Foo.new.state` to be `active`. But without setting `initial: :active` in the state machine definition, it sets...
Okay, so this is a first pass at a PR where we invite the developer to opt-in OR opt-out of nested transactions. I started small to see how the maintainers...
I have a controller that performs a search. To do that I have a lot of scopes chained together to obtain the right result. Because the user doesn't need to...
I started with state_machines, and wrote a few specs about my workflow with state_machines-rspec. When I decided later to switch to state_machines-activerecord, my transition specs failed, and I can't see...
say if I have the following associations ``` class User < ApplicationRecord has_many :active_projects, -> { with_state(:active) }, class_name: Project end class Project < ApplicationRecord belongs_to :user state_machine :state, initial:...
I'm getting this warning after trigger an state machine event: ``` DEPRECATION WARNING: `serialized_attributes` is deprecated without replacement, and will be removed in Rails 5.0. ```
Guys, i dont know if this is my mistake or real bug. someone can help me? When i use dynamic approach, i geting one problem: the state dont persisted on...
It would be nice to be able to perform the `after_transition` callback after the `after_commit` callback. There's an issue where if your `after_transition` starts a job, the model is retrieved...
http://www.rubydoc.info/github/state-machines/state_machines-activerecord/StateMachines/Integrations/ActiveRecord
Hello, I am updating the Ruby and Rails to 3.2 and 7.0 respectively. We have a couple of models with `send` as the state event. After the upgrade this is...