diff --git a/lib/aasm/persistence/base.rb b/lib/aasm/persistence/base.rb index ce5fc3f..b097df4 100644 --- a/lib/aasm/persistence/base.rb +++ b/lib/aasm/persistence/base.rb @@ -83,6 +83,7 @@ module AASM end # Persistence class Base + # make sure to create a (named) scope for each state def state_with_scope(name, *args) state_without_scope(name, *args) unless @clazz.respond_to?(name)