Changeset [20de42db78b10fd14d9a4eb9d879638a3723e789] by Caius Durling
Revision 20de42db78b10fd14d9a4eb9d879638a3723e789,
committed 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...
1 changed file
-
M
lib/aasm/aasm.rb