Skip to content

Commit

Permalink
Require activesupport prior to core_ext/string
Browse files Browse the repository at this point in the history
When running the test suite with activesupport version 7, an
unitialized constant error for `XmlMini::IsolatedExecutionState`
is raised.

As described here:

- rails/rails#43851
- rails/rails#43852

The resolution for this is to first require `active_support` before
requiring `core_ext/string` so that autoloading happens correctly.
  • Loading branch information
mjankowski committed Feb 11, 2022
1 parent c2ad743 commit 855df49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/inline_svg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
require "inline_svg/io_resource"

require "inline_svg/railtie" if defined?(Rails)
require 'active_support'
require 'active_support/core_ext/string'
require 'nokogiri'

Expand Down

0 comments on commit 855df49

Please sign in to comment.