Closed pragmaticivan closed 9 years ago
Is Coupon an ActiveRecord model ?
Yes @seuros
If you check on the old gem, you can see on the .methods
method that we can use the with_state and without_state approach.
Do I need to use the active record gem ? I though the state_machines gem already check if I'm using Active Record and use this as well.
That part of the activerecord integration : https://github.com/state-machines/state_machines-activerecord. This gem is the core only for POROs.
Thanks.
Hi, I'm trying to migrate my app to use this gem now, I was using
with_state
of the last gem, did you guys have removed this?ex: