Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from joesteele/update_jammit_public_root

use Jammit.public_root if defined to support Jammit 0.6.5
  • Loading branch information...
commit 7d329546ed04f260b537be7df01dfa7dbec71781 2 parents 703c4bf + 3314b73
Eric Artzt artzte authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/jammit/middleware.rb
3  lib/jammit/middleware.rb
View
@@ -10,6 +10,7 @@ class Middleware
SUFFIX_STRIPPER = /-(datauri|mhtml)\Z/
+ PUBLIC_ROOT = defined?(Jammit.public_root) ? Jammit.public_root : PUBLIC_ROOT
NOT_FOUND_PATH = "#{PUBLIC_ROOT}/404.html"
def initialize(app)
@@ -111,4 +112,4 @@ def parse_request(pack, extension)
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.