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
|
# 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
|
## 3.0.21
|
||||||
|
|
||||||
* support nested ActiveRecord transactions ([@ozeias](https://github.com/ozeias))
|
* support nested ActiveRecord transactions ([@ozeias](https://github.com/ozeias))
|
||||||
|
|
|
@ -132,7 +132,7 @@ module AASM
|
||||||
end
|
end
|
||||||
|
|
||||||
def aasm_fire_event(name, options, *args)
|
def aasm_fire_event(name, options, *args)
|
||||||
transaction(:requires_new => true) do
|
self.class.transaction(:requires_new => true) do
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue