Permalink
Browse files

fix support for Rails 3.2.1

  • Loading branch information...
1 parent 8495125 commit e9a9c293e1f5a97843976e0248ff09cdd1eb8eed @maccman maccman committed Jan 28, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 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 = {

0 comments on commit e9a9c29

Please sign in to comment.