mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
fix #88 (wrong number of arguments for transaction method)
This commit is contained in:
parent
a2711e8533
commit
d0284b9721
2 changed files with 5 additions and 1 deletions
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue