Gaius Centus Novus
Not a member
Gaius Centus Novus's latest activity
Monday, June 22 2009
20
State Transitions Return true but do Nothing
was updated
in AASM
-
Gaius Centus Novus commented at 11:59 AMThe problem was that I was using
alias_attributeinstead ofaasm_column:# wrong class Item include AASM alias_attribute :aasm_state, :state end # right c... -
Gaius Centus Novus commented at 11:54 AMAn oddity: after a state transition,
read_attributereturns the correct value even thoughstatedoesn't:i = Item.create! i.check_out! i.state # => 'available'... -
Gaius Centus Novus created the ticket at 10:40 AMI have a class:
class Item < ActiveRecord::Base include AASM aasm_initial_state :available aasm_state :available aasm_state :in_use aasm_event(:check...