Skip to content

Commit e7138dd

Browse files
committed
/opal_spec should work even if source maps are disabled
1 parent b09d5f0 commit e7138dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/opal/rails/engine.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ class Engine < ::Rails::Engine
3333
Opal::Processor.send(key, value) if Opal::Processor.respond_to? key
3434
end
3535

36-
if config.opal.source_map_enabled
37-
maps_app = Opal::SourceMapServer.new(app.assets)
38-
39-
app.routes.prepend do
36+
app.routes.prepend do
37+
if config.opal.source_map_enabled
38+
maps_app = Opal::SourceMapServer.new(app.assets)
4039
mount maps_app => maps_app.prefix
41-
get '/opal_spec' => 'opal_spec#run'
4240
end
41+
42+
get '/opal_spec' => 'opal_spec#run'
4343
end
4444
end
4545

0 commit comments

Comments
 (0)