Skip to content

Commit 0b08307

Browse files
committedOct 15, 2014
Allow Server.sprockets to be set as initializer option
1 parent 3c76540 commit 0b08307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/opal/sprockets/server.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def initialize debug_or_options = {}
7373
@use_index = true
7474
@public_root = nil
7575
@public_urls = ['/']
76-
@sprockets = Environment.new
76+
@sprockets = options.fetch(:sprockets, Environment.new)
7777
@debug = options.fetch(:debug, true)
7878
@prefix = options.fetch(:prefix, '/assets')
7979

0 commit comments

Comments
 (0)
Please sign in to comment.