diff --git a/lib/statesman/adapters/active_record_queries.rb b/lib/statesman/adapters/active_record_queries.rb index 6f486457..f8f37922 100644 --- a/lib/statesman/adapters/active_record_queries.rb +++ b/lib/statesman/adapters/active_record_queries.rb @@ -53,7 +53,7 @@ def included(base) define_method(:reload) do |*a| instance = super(*a) if instance.respond_to?(:state_machine, true) - instance.send(:state_machine).reset + instance.send(:state_machine)&.reset end instance end