Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix support for Rails 3.2.1

  • Loading branch information...
commit e9a9c293e1f5a97843976e0248ff09cdd1eb8eed 1 parent 8495125
Alex MacCaw maccman authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/rack-offline.rb
6 lib/rack-offline.rb
View
@@ -7,10 +7,8 @@ def self.call(env)
@app.call(env)
end
- def initialize(options = {}, app = Rails.application, &block)
- config = app.config
- root = config.paths.public.to_a.first
-
+ def initialize(options = {}, &block)
+ root = Rails.public_path
block = cache_block(Pathname.new(root)) unless block_given?
opts = {
Please sign in to comment.
Something went wrong with that request. Please try again.