fix #88 (wrong number of arguments for transaction method)

This commit is contained in:
Thorsten Böttger 2013-08-29 21:41:45 +02:00
parent a2711e8533
commit d0284b9721
2 changed files with 5 additions and 1 deletions

View File

@ -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))

View File

@ -132,7 +132,7 @@ module AASM
end
def aasm_fire_event(name, options, *args)
transaction(:requires_new => true) do
self.class.transaction(:requires_new => true) do
super
end
end