We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8beb595 commit 5018f40Copy full SHA for 5018f40
lib/stasis/dev_mode.rb
@@ -14,6 +14,7 @@ def initialize(dir, options={})
14
15
@dir = dir
16
@options = options
17
+ @options[:development] ||= true
18
19
@stasis = Stasis.new(*[ @dir, @options[:public], @options ].compact)
20
@@ -34,7 +35,7 @@ def initialize(dir, options={})
34
35
dw.add_observer { render }
36
dw.start
37
- if options[:development]
38
+ if options[:development].is_a?(::Integer)
39
mime_types = WEBrick::HTTPUtils::DefaultMimeTypes
40
mime_types.store 'js', 'application/javascript'
41
0 commit comments