Changeset [20de42db78b10fd14d9a4eb9d879638a3723e789] by Caius Durling

August 27th, 2010 @ 03:17 PM

Calling super from AASM.included

Reason for this is rails gets uppity if you include AASM in a model, then subclass that model (STI.) You can end up with "can't dup NilClass" errors and it's all very confusing.

Calling super is considered playing nicely with other code anyway.
http://github.com/rubyist/aasm/commit/20de42db78b10fd14d9a4eb9d8796...

Committed by Caius Durling

  • M lib/aasm/aasm.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Library for adding state machines to Ruby classes. Includes persistence layers for things like ActiveRecord. Formerly known as acts_as_state_machine.