mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
bugfix: don't require ActiveRecord for localizing AASM event and state name #113
This commit is contained in:
parent
314227285d
commit
1c2f36fb7e
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,10 @@
|
|||
|
||||
* deprecated old aasm_* class methods (old-style DSL), in preparation for AASM v4.0.0
|
||||
|
||||
## 3.1.1
|
||||
|
||||
* bugfix: don't require ActiveRecord for localizing AASM event and state name (see [issue #113](https://github.com/aasm/aasm/issues/113), thanks to [@silentshade](https://github.com/silentshade))
|
||||
|
||||
## 3.1.0
|
||||
|
||||
* validating the current state (see [issue #95](https://github.com/aasm/aasm/issues/95), thanks to [@ivantsepp](https://github.com/ivantsepp))
|
||||
|
|
|
@ -47,7 +47,7 @@ module AASM
|
|||
|
||||
def ancestors_list(klass)
|
||||
klass.ancestors.select do |ancestor|
|
||||
ancestor.respond_to?(:model_name) unless ancestor == ActiveRecord::Base
|
||||
ancestor.respond_to?(:model_name) unless ancestor.name == 'ActiveRecord::Base'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue