Skip to content

Commit fa98052

Browse files
committed
Fix uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState
After the move to Rails 7, the following error was causing tests to fail: ``` uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState ``` The solution was to explicitly require `active_support` before requiring the Hash and Array core extensions. This is the suggested approach given in the [Active Support documentation][1], but presumably the previous combination of Ruby and Rails was more forgiving of its omittance. This change is based on the solution identified here: rails/rails#43851 (comment) [1]: https://guides.rubyonrails.org/active_support_core_extensions.html#stand-alone-active-support
1 parent c953e81 commit fa98052

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/govspeak.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require "active_support"
12
require "active_support/core_ext/hash"
23
require "active_support/core_ext/array"
34
require "erb"

0 commit comments

Comments
 (0)