Skip to content

Commit b1a6cc0

Browse files
authored
Merge pull request #1047 from academia-edu/require-correct-version-of-sprockets
Fix compatibility with beta versions of Sprockets
2 parents 94f7897 + 594776b commit b1a6cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/react/jsx/sprockets_strategy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def attach_with_strategy(sprockets_env, strategy_or_nil)
2323
# @return [Symbol] based on the environment, return a method name to call with the sprockets environment
2424
def detect_strategy
2525
sprockets_version = Gem::Version.new(Sprockets::VERSION)
26-
if sprockets_version >= Gem::Version.new('4.x')
26+
if sprockets_version >= Gem::Version.new('4.a')
2727
:register_processors
2828
elsif sprockets_version >= Gem::Version.new('3.0.0')
2929
:register_engine_with_mime_type

0 commit comments

Comments
 (0)