diff --git a/CHANGELOG.md b/CHANGELOG.md index 5923a0ea..308b46a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 3.0.22 (not yet released) + + * fixed [issue 88](https://github.com/aasm/aasm/issues/88): wrong number of arguments for transaction method + ## 3.0.21 * support nested ActiveRecord transactions ([@ozeias](https://github.com/ozeias)) diff --git a/lib/aasm/persistence/active_record_persistence.rb b/lib/aasm/persistence/active_record_persistence.rb index 0196272b..09ae4fd2 100644 --- a/lib/aasm/persistence/active_record_persistence.rb +++ b/lib/aasm/persistence/active_record_persistence.rb @@ -132,7 +132,7 @@ def aasm_ensure_initial_state end def aasm_fire_event(name, options, *args) - transaction(:requires_new => true) do + self.class.transaction(:requires_new => true) do super end end