Changeset [a6f77b5fa4981d92695e28d5984af56f1d79388c] 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...

Committed by Thorsten Böttger

  • A test/models/process.rb
  • A test/unit/state_machine_test.rb
  • M lib/aasm/state_machine.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.