Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 12, 2011
  1. @troessner

    Bump version.

    troessner authored
Commits on Oct 4, 2011
  1. @troessner

    Merge pull request #37 from Bodacious/define_method

    troessner authored
    Prefer define_method over class_eval.
  2. @troessner

    Merge pull request #36 from Bodacious/timestamp_rework

    troessner authored
    Add timestamps to state transitions.
Commits on Oct 3, 2011
  1. @Bodacious
  2. @Bodacious

    added .rvmrc to .gitignore

    Bodacious authored
  3. @Bodacious
  4. @Bodacious

    updated README

    Bodacious authored
  5. @Bodacious
  6. @Bodacious

    cleaned up test DB code

    Bodacious authored
  7. @Bodacious

    Added .rvmrc file

    Bodacious authored
Commits on Sep 29, 2011
  1. @troessner

    Merge pull request #34 from appfertigung/master

    troessner authored
    Mimic ActiveRecord interface for locking and stringify state names.
  2. @dbloete
Commits on Sep 28, 2011
  1. @dbloete

    Stringify state name

    dbloete authored
    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. @dbloete

    Mimic ActiveRecord interface

    dbloete authored
Commits on Aug 25, 2011
  1. @troessner

    Add myself as a contributor.

    troessner authored
Commits on Aug 23, 2011
  1. @troessner
Commits on Aug 11, 2011
  1. @troessner

    Bump version to 0.0.10.

    troessner authored
  2. @troessner

    Revert "Bump version."

    troessner authored
    This reverts commit 986540b.
  3. @troessner

    Bump version.

    troessner authored
Commits on Jul 27, 2011
  1. @qoobaa

    Merge pull request #29 from alexhanh/master

    qoobaa authored
    fixed setting initial state whenever :state isn't included in the query
  2. @alexhanh
Commits on Jul 3, 2011
  1. @troessner
Commits on Jun 7, 2011
  1. @qoobaa

    Merge pull request #27 from tjsingleton/patch-1

    qoobaa authored
    Extend StandardError instead of the lower level Exception.
  2. Extend StandardError instead of the lower level Exception. Typically …

    TJ Singleton authored
    …StandardError represents application level exceptions.
Commits on May 12, 2011
  1. @qoobaa

    Edited README.rdoc via GitHub

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

    Micah Frost authored Jakub Kuźma committed
    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. @dhl

    current_state of new objects now returns the initial state correctly

    dhl authored Jakub Kuźma committed
    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. @pjones

    Allow state query methods to work in conditional validations

    pjones authored Jakub Kuźma committed
    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. @tomafro

    Calling ActiveRecord#reload should clear the current state variable.

    tomafro authored Jakub Kuźma committed
    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. @Burgestrand

    Correct the rdoc markup of +word+ to <tt>word</tt> in README

    Burgestrand authored Jakub Kuźma committed
  2. @Burgestrand

    Add event execution flow to README.rdoc

    Burgestrand authored Jakub Kuźma committed
  3. @Burgestrand

    Add persistence information for AR::Transitions in README.rdoc

    Burgestrand authored Jakub Kuźma committed
  4. @Burgestrand

    Separate code example from Rails usage information in README.rdoc

    Burgestrand authored Jakub Kuźma committed
  5. @Burgestrand

    Reword first section in README.rdoc (what is transitions?)

    Burgestrand authored Jakub Kuźma committed
  6. @Burgestrand

    Add link to online documentation (rdoc.info) in README.rdoc

    Burgestrand authored Jakub Kuźma committed
Something went wrong with that request. Please try again.