butler_static 0.0.5 → 0.0.6
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
@@ -78,10 +78,11 @@ module Butler
|
|
78
78
|
def initialize(app, options={})
|
79
79
|
@app = app
|
80
80
|
path = options[:path] || ''
|
81
|
+
# CLEAN THIS MESS UP
|
81
82
|
path ||= Rails.application.config.paths['public'].first if defined? Rails
|
82
83
|
@header_rules = {}
|
83
84
|
if defined? Rails
|
84
|
-
header_rules = Rails.application.
|
85
|
+
header_rules = Rails.application.config.assets.header_rules
|
85
86
|
@header_rules.merge(header_rules) if header_rules
|
86
87
|
end
|
87
88
|
@header_rules = @header_rules.merge(options[:header_rules]) if options[:header_rules]
|
data/lib/butler/version.rb
CHANGED