Skip to content

Commit

Permalink
fix #88 (wrong number of arguments for transaction method)
Browse files Browse the repository at this point in the history
  • Loading branch information
alto committed Aug 29, 2013
1 parent a2711e8 commit d0284b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 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))
Expand Down
2 changes: 1 addition & 1 deletion lib/aasm/persistence/active_record_persistence.rb
Expand Up @@ -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
Expand Down

0 comments on commit d0284b9

Please sign in to comment.