You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use alias_attribute on a state machine attribute, you can correctly use the aliased getters and setters. However, initializing a model with a hash containing the aliased attribute fails to set the state.
This is inconsistent with how attributes are supposed to work in ActiveModel.
@seuros is there any interest in fixing this issue? I've been looking at the source code, but am still familiarizing myself with where to hone in on the proper fix.
seuros
transferred this issue from state-machines/state_machines-activemodel
Apr 17, 2021
seuros
transferred this issue from state-machines/state_machines-activerecord
Apr 17, 2021
If you use
alias_attribute
on a state machine attribute, you can correctly use the aliased getters and setters. However, initializing a model with a hash containing the aliased attribute fails to set the state.This is inconsistent with how attributes are supposed to work in ActiveModel.
A simple example:
The text was updated successfully, but these errors were encountered: