2011-11-25 23:11:30 +00:00
# CHANGELOG
2014-01-11 11:45:42 +00:00
## 3.9.0 (not yet released)
2013-11-30 21:53:18 +00:00
* deprecated old aasm_* class methods (old-style DSL), in preparation for AASM v4.0.0
2014-01-11 12:11:54 +00:00
## 3.1.0 (not yet released)
* validating the current state (see [issue #95 ](https://github.com/aasm/aasm/issues/95 ), thanks to [@ivantsepp ](https://github.com/ivantsepp ))
2014-01-24 11:02:22 +00:00
* allow configuring behavior of nested transactions (see [issue #107 ](https://github.com/aasm/aasm/issues/107 ))
* support multiple guards per transition
* support event guards (see [issue #85 ](https://github.com/aasm/aasm/issues/85 ))
2014-01-27 20:51:38 +00:00
* support reading from- and to-state during on_transition callback (see [issue #100 ](https://github.com/aasm/aasm/issues/100 ))
2014-01-11 12:11:54 +00:00
2014-01-11 11:45:42 +00:00
## 3.0.26
2014-01-11 12:11:54 +00:00
* support state.human_name (aliased to state.localized_name) (see [issue #105 ](https://github.com/aasm/aasm/issues/105 ))
2014-01-11 11:45:42 +00:00
2013-12-16 22:42:50 +00:00
## 3.0.25
2013-12-16 22:45:46 +00:00
* initialize the state even if validation is skipped (for ActiveRecord and Mongoid persistence) (see [issue #103 ](https://github.com/aasm/aasm/issues/103 ), thanks to [@vfonic ](https://github.com/vfonic ) and [@aaronklaassen ](https://github.com/aaronklaassen ))
2013-12-16 22:42:50 +00:00
2013-11-20 20:45:52 +00:00
## 3.0.24
* added support for event blocks (thanks to [@Intrepidd ](https://github.com/Intrepidd ))
2013-10-24 13:29:38 +00:00
## 3.0.23
* added support for `after_commit` callback (transaction support) (thanks to [@tisba ](https://github.com/tisba ))
2013-08-29 19:42:10 +00:00
## 3.0.22
2013-08-29 19:41:45 +00:00
* fixed [issue 88 ](https://github.com/aasm/aasm/issues/88 ): wrong number of arguments for transaction method
2013-08-27 21:12:18 +00:00
## 3.0.21
* support nested ActiveRecord transactions ([@ozeias](https://github.com/ozeias))
* allow overwriting of events, can be very useful with inheritance ([@Intrepidd](https://github.com/Intrepidd))
2013-08-06 14:55:32 +00:00
## 3.0.20
* added configuration option to disable automatic scope creation
2013-05-29 21:30:24 +00:00
## 3.0.19
2013-03-15 04:00:22 +00:00
2013-05-29 22:02:09 +00:00
* fixed deprecation warning with *Rails 4* (`Relation#update_all` with conditions is deprecated)
2013-05-29 22:04:52 +00:00
* fixing [issue #69 ](https://github.com/aasm/aasm/issues/69 ) ( *ActiveRecord* scopes are not chainable)
2013-05-29 21:19:04 +00:00
2013-05-15 22:43:48 +00:00
## 3.0.18
2013-05-29 22:02:09 +00:00
* fixing [issue #66 ](https://github.com/aasm/aasm/issues/66 ) (state methods not reflecting the current state)
2013-05-15 22:43:48 +00:00
2013-04-28 16:13:20 +00:00
## 3.0.17
2013-05-29 22:02:09 +00:00
* supporting instance level inspection for states (including permissible state, see [issue #54 ](https://github.com/aasm/aasm/issues/54 ))
2013-03-15 04:00:22 +00:00
* added autocreation of constants for each state ([@jherdman](https://github.com/jherdman))
2013-01-16 09:00:54 +00:00
## 3.0.16
* added autocreation of state scopes for Mongoid (thanks to [@jonnyshields ](https://github.com/johnnyshields ))
2012-12-26 21:23:41 +00:00
## 3.0.15
2013-05-29 22:02:09 +00:00
* added support for localized state names (on a class level, like `Record.aasm.states.map(&:localized_name)` )
2012-12-26 21:23:41 +00:00
2012-11-05 22:51:05 +00:00
## 3.0.14
* supporting event inspection for to-states transitions (`Event#transitions_to_state?`)
2012-10-24 08:03:09 +00:00
## 3.0.13
2012-11-05 22:51:05 +00:00
* supporting *ActiveRecord* transactions when firing an event
2012-10-24 08:03:09 +00:00
2012-10-19 10:05:43 +00:00
## 3.0.12
2012-11-05 22:51:05 +00:00
* `aasm_from_states_for_state` now supports to filter for specific transition
2012-10-19 10:05:43 +00:00
2012-10-19 09:44:20 +00:00
## 3.0.11
2012-11-05 22:51:05 +00:00
* added class method `aasm_from_states_for_state` to retrieve all from states (regarding transitions) for a given state
2012-10-19 09:44:20 +00:00
2012-10-19 07:22:00 +00:00
## 3.0.10
2013-05-29 22:04:52 +00:00
* added support for transitions from all other states (thanks to [@swrobel ](https://github.com/swrobel ))
2012-10-19 07:22:00 +00:00
2012-09-26 00:35:13 +00:00
## 3.0.9
2012-11-05 22:51:05 +00:00
* guard checks (e.g. `may_edit?` ) now support guard parameters as well
2012-09-26 00:35:13 +00:00
2012-06-17 06:13:07 +00:00
## 3.0.8
* fixed issue with generating docs using yard
2012-06-06 21:05:22 +00:00
## 3.0.7
2012-06-06 10:32:52 +00:00
2013-05-29 22:04:52 +00:00
* removed deprecation warning when localizing aasm state names (look at [issue #38 ](https://github.com/rubyist/aasm/issues/38 ) for details)
2012-06-06 10:32:52 +00:00
2012-05-17 10:05:43 +00:00
## 3.0.6
* bugfix: if configured to skip validation the code does not validate anymore
2012-04-17 20:36:45 +00:00
## 3.0.5
* bugfix: get rid of error with old rubygems versions
2012-04-02 10:11:35 +00:00
## 3.0.4
* bugfix: Subclasses of aasm-enabled classes don't lose settings anymore (thanks to codez)
2012-02-22 11:08:09 +00:00
## 3.0.3
* bugfix: ActiveRecord scopes are generated when using the new DSL
2012-01-16 16:42:53 +00:00
## 3.0.2
2012-01-16 16:27:15 +00:00
* ActiveRecord persistence can ignore validation when trying to save invalid models
2011-12-21 11:39:02 +00:00
## 3.0.1
* added support for Mongoid (Thanks, Michał Taberski)
2011-11-26 20:11:57 +00:00
## 3.0.0
* switched documentation to the new DSL
* whiny transactions: by default, raise an exception if an event transition is not possible
* you may disable whiny transactions
2012-11-05 22:51:05 +00:00
## 2.4.0
2011-11-25 23:11:30 +00:00
* supporting new DSL (which is much shorter)
## 2.3.1
* bugfix: avoid naming conflict with i18n
## 2.3.0
* supporting i18n
* supporting regular expressions for hash values and strings