Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rack::Offline and Rails::Offline now have the same initialization sig…

…natures.
  • Loading branch information...
commit 112cffdec92e729a2765da4d058d1f54703c69d6 1 parent 5984249
@arsduo arsduo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rack-offline.rb
View
4 lib/rack-offline.rb
@@ -7,7 +7,7 @@ def self.call(env)
@app.call(env)
end
- def initialize(app = Rails.application, &block)
+ def initialize(options = {}, app = Rails.application, &block)
config = app.config
root = config.paths.public.to_a.first
@@ -17,7 +17,7 @@ def initialize(app = Rails.application, &block)
:cache => config.cache_classes,
:root => root,
:logger => Rails.logger
- }
+ }.merge(options)
super opts, &block
end
Please sign in to comment.
Something went wrong with that request. Please try again.