butler_static 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/butler/static.rb +2 -1
- data/lib/butler/version.rb +1 -1
- metadata +1 -1
data/lib/butler/static.rb
CHANGED
@@ -75,8 +75,9 @@ module Butler
|
|
75
75
|
# general global HTTP header settings
|
76
76
|
#
|
77
77
|
class Static
|
78
|
-
def initialize(app,
|
78
|
+
def initialize(app, options={})
|
79
79
|
@app = app
|
80
|
+
path = options[:path] || Rails.application.config.paths['public'].first
|
80
81
|
@header_rules = options[:header_rules] || {}
|
81
82
|
@file_handler = Butler::Handler.new(path, header_rules: @header_rules)
|
82
83
|
end
|
data/lib/butler/version.rb
CHANGED