Permalink
Commits on Oct 12, 2011
  1. Bump version.

    troessner committed Oct 12, 2011
Commits on Oct 4, 2011
  1. Merge pull request #37 from Bodacious/define_method

    troessner committed Oct 4, 2011
    Prefer define_method over class_eval.
  2. Merge pull request #36 from Bodacious/timestamp_rework

    troessner committed Oct 4, 2011
    Add timestamps to state transitions.
Commits on Oct 3, 2011
  1. added .rvmrc to .gitignore

    Bodacious committed Oct 3, 2011
  2. updated README

    Bodacious committed Oct 3, 2011
  3. cleaned up test DB code

    Bodacious committed Oct 3, 2011
  4. Added .rvmrc file

    Bodacious committed Oct 3, 2011
Commits on Sep 29, 2011
  1. Merge pull request #34 from appfertigung/master

    troessner committed Sep 29, 2011
    Mimic ActiveRecord interface for locking and stringify state names.
  2. Added comment for reload method

    dbloete committed Sep 29, 2011
Commits on Sep 28, 2011
  1. Stringify state name

    dbloete committed Sep 28, 2011
    AR prefixes the state with the table name (i.e. "`traffic_lights`.`state` = `traffic_lights`.`red`") if we pass the name as symbol. We need to pass it as string, so that it works ("`traffic_lights`.`state` = 'red'")
  2. Mimic ActiveRecord interface

    dbloete committed Sep 28, 2011
Commits on Aug 25, 2011
  1. Add myself as a contributor.

    troessner committed Aug 25, 2011
Commits on Aug 23, 2011
Commits on Aug 11, 2011
  1. Bump version to 0.0.10.

    troessner committed Aug 11, 2011
  2. Revert "Bump version."

    troessner committed Aug 11, 2011
    This reverts commit 986540b.
  3. Bump version.

    troessner committed Aug 11, 2011
Commits on Jul 27, 2011
  1. Merge pull request #29 from alexhanh/master

    qoobaa committed Jul 27, 2011
    fixed setting initial state whenever :state isn't included in the query
Commits on Jul 3, 2011
Commits on Jun 7, 2011
  1. Merge pull request #27 from tjsingleton/patch-1

    qoobaa committed Jun 7, 2011
    Extend StandardError instead of the lower level Exception.
  2. Extend StandardError instead of the lower level Exception. Typically …

    TJ Singleton committed Jun 7, 2011
    …StandardError represents application level exceptions.
Commits on May 12, 2011
  1. Edited README.rdoc via GitHub

    qoobaa committed May 12, 2011
Commits on Feb 24, 2011
  1. New records have their state set after initialization

    Micah Frost committed with Jakub Kuźma Feb 23, 2011
    Initial state was set using before_validation, which resulted in a nil state
    for new records. Instead of using the before_validate hook, use the
    after_initialize hook to make sure the state is properly set.
Commits on Feb 22, 2011
  1. current_state of new objects now returns the initial state correctly

    dhl committed with Jakub Kuźma Feb 20, 2011
    When an object is freshly initialized, the current_State virtual
    attribute calls on read_state to get an object's current state, which in
    turn calls to_sym on the `state` attribute. However, the state attribute
    of a newly initialized object might return nil, and this causes an
    exception to be thrown.
Commits on Nov 16, 2010
  1. Allow state query methods to work in conditional validations

    pjones committed with Jakub Kuźma Nov 15, 2010
    When you have a conditional validation, for example:
    
      validates(:name, :presence => true, :if => :red?)
    
    Then `save!' should raise an exception if transitioning to `red' and
    `name' isn't valid.
    
    Adds a test and changes the `write_state' method for active record to
    revert to previous state on a failed save.
Commits on Oct 27, 2010
  1. Calling ActiveRecord#reload should clear the current state variable.

    tomafro committed with Jakub Kuźma Oct 26, 2010
    If it isn't cleared, the returned state may not be consistent with the value of the state attribute.
Commits on Oct 5, 2010
  1. Add event execution flow to README.rdoc

    Burgestrand committed with Jakub Kuźma Oct 5, 2010