Skip to content

Commit

Permalink
Rack::Offline and Rails::Offline now have the same initialization sig…
Browse files Browse the repository at this point in the history
…natures.
  • Loading branch information
arsduo committed Jul 29, 2011
1 parent 5984249 commit 112cffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack-offline.rb
Expand Up @@ -7,7 +7,7 @@ def self.call(env)
@app.call(env) @app.call(env)
end end


def initialize(app = Rails.application, &block) def initialize(options = {}, app = Rails.application, &block)
config = app.config config = app.config
root = config.paths.public.to_a.first root = config.paths.public.to_a.first


Expand All @@ -17,7 +17,7 @@ def initialize(app = Rails.application, &block)
:cache => config.cache_classes, :cache => config.cache_classes,
:root => root, :root => root,
:logger => Rails.logger :logger => Rails.logger
} }.merge(options)


super opts, &block super opts, &block
end end
Expand Down

0 comments on commit 112cffd

Please sign in to comment.