Changeset [a6f77b5fa4981d92695e28d5984af56f1d79388c] by Thorsten Böttger
Revision a6f77b5fa4981d92695e28d5984af56f1d79388c,
committed by Thorsten Böttger
· April 1st, 2011 @ 03:22 AM
avoiding memory leak in Rails 3 development mode (where
cache_classes == false); drawback is, that now the state machine
won't be re-declared on each request; thus, changes in the state
machine will force you to restart the Rails server (but this still
is better than the memory leak)
https://github.com/rubyist/aasm/commit/a6f77b5fa4981d92695e28d5984a...
3 changed files
-
A
test/models/process.rb -
A
test/unit/state_machine_test.rb -
M
lib/aasm/state_machine.rb