From d0284b97212879303d0d7b9429d6f46cce6934bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20B=C3=B6ttger?= Date: Thu, 29 Aug 2013 21:41:45 +0200 Subject: [PATCH] fix #88 (wrong number of arguments for transaction method) --- CHANGELOG.md | 4 ++++ lib/aasm/persistence/active_record_persistence.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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