Skip to content

Commit e135984

Browse files
committed
Only set the gzip option if the env respond to it
Fixes #365
1 parent 606c39d commit e135984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/railtie.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def configure(&block)
155155
end
156156

157157
config.assets.configure do |env|
158-
env.gzip = config.assets.gzip
158+
env.gzip = config.assets.gzip if env.respond_to?(:gzip=)
159159
end
160160

161161
rake_tasks do |app|

0 commit comments

Comments
 (0)