Changeset [5f8cd2f9c25044f9df716be3818e3a146f7c0a24] by Aaron Pfeifer

June 14th, 2009 @ 01:31 PM

Use :attribute to customize the attribute target and remove :as, assuming the name is the first argument of #state_machine Allow multiple state machines on the same class to target the same attribute http://github.com/pluginaweek/st...

Committed by Aaron Pfeifer

  • M CHANGELOG.rdoc
  • M lib/state_machine.rb
  • M lib/state_machine/integrations/active_record.rb
  • M lib/state_machine/integrations/active_record/locale.rb
  • M lib/state_machine/integrations/data_mapper.rb
  • M lib/state_machine/integrations/data_mapper/observer.rb
  • M lib/state_machine/integrations/sequel.rb
  • M lib/state_machine/machine.rb
  • M lib/state_machine/machine_collection.rb
  • M lib/state_machine/state.rb
  • M test/unit/event_collection_test.rb
  • M test/unit/integrations/active_record_test.rb
  • M test/unit/integrations/data_mapper_test.rb
  • M test/unit/integrations/sequel_test.rb
  • M test/unit/machine_test.rb
  • M test/unit/transition_test.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 »

Adds support for creating state machines for attributes within a model