Permalink
Commits on Nov 11, 2008
Commits on Nov 5, 2008
  1. Allow duplicate state names in subclasses

    When an AASM including class is subclassed, a shallow copy is made of
    the StateMachine object.  This means that all subclasses share the same
    states hash and thus the same set of states, which prevents (among other
    things) different subclasses from using the same state names.
    
    Give StateMachine a smart #clone method that copies the states hash and
    invoke that rather than #dup upon subclassing.
    tpope committed Nov 5, 2008
Commits on Oct 9, 2008
  1. Invoke original inherited callback when subclassed

    When AASM is included into a class, it defines inherited, clobbering
    the original definition.  This problem becomes readily apparent with STI
    in Rails, where the original method is part of the implementation of
    inheritable attributes, a feature relied on for several ActiveRecord
    features such as callbacks and timestamp recording.
    
    Move the implementation of inherited to ClassMethods and invoke the
    original method via super.
    tpope committed Oct 9, 2008
  2. Added support for lambdas and arrays of method symbols to success cal…

    …lback
    Jon Distad committed Oct 9, 2008
Commits on Oct 7, 2008
  1. Version module is causing conflicts with other packages

    Scott Barron committed Oct 7, 2008
Commits on Oct 3, 2008
  1. new aasm unit spec

    Jon Distad committed Oct 3, 2008
  2. modified (and fixed) failed event! behavior due to failed aasm_write_…

    …state() call
    Jon Distad committed Oct 3, 2008
  3. [Jon] increased the scope of active_record persistence to save the wh…

    …ole model
    Edgecase Pair One committed Oct 3, 2008
Commits on Aug 13, 2008
  1. InvalidTransition should inherit from RuntimError, not Exception [Rob…

    … Sanheim]
    Scott Barron committed Aug 13, 2008
  2. This spec wasn't really working right.

    Scott Barron committed Aug 13, 2008
Commits on Jul 22, 2008
Commits on Jul 9, 2008
  1. pump version so gem updates

    Scott Barron committed Jul 9, 2008
Commits on Jun 27, 2008
Commits on Jun 23, 2008
  1. update changelog

    Scott Barron committed Jun 23, 2008
Commits on Jun 22, 2008
  1. typo

    Scott Barron committed Jun 22, 2008
  2. add lighthouse and github urls to README

    Scott Barron committed Jun 22, 2008
  3. Take state column for AR persistance out of class variables and add t…

    …hem to the
    
    StateMachine object.
    Scott Barron committed Jun 22, 2008
Commits on Jun 4, 2008
  1. Add Kevin's change to changelog

    Scott Barron committed Jun 4, 2008
Commits on Jun 1, 2008
  1. Get rid of class vars added to classes including AASM, support inheri…

    …tance on AASMs
    Scott Barron committed Jun 1, 2008
Commits on May 31, 2008
  1. SM support events

    instance methods consistently use self.class.aasm_ rather than going through SMFactory
    Scott Barron committed May 31, 2008
  2. StateMachine supports adding State

    Scott Barron committed May 31, 2008
  3. Add StateMachine object and StateMachineFactory

    Supports initial state in SM
    Scott Barron committed May 31, 2008
  4. Move state for select logic into State

    Scott Barron committed May 31, 2008
  5. Support enter and exit actions on states

    Scott Barron committed May 31, 2008
  6. Combine event firing logic for ! (persistent) and non-! (non-persiste…

    …nt) event triggers
    Scott Barron committed May 31, 2008
  7. remove spurious comment

    Scott Barron committed May 31, 2008
  8. Use State objects

    Scott Barron committed May 31, 2008
  9. Modify State to prep for enter/entering/exit actions

    Scott Barron committed May 31, 2008
Commits on May 30, 2008
  1. Merge in Jan De Poorter's [DefV] named_scope addition to AR persisten…

    …ce layer, with some organizational clean up.
    Scott Barron committed May 30, 2008