From 83bce130200128d03969fbea3da41078fc3d04e1 Mon Sep 17 00:00:00 2001 From: dinedine Date: Thu, 30 Dec 2010 18:15:06 +0100 Subject: [PATCH] fonts were not served in the locomotive engine --- lib/locomotive/engine.rb | 5 ++++- lib/locomotive/version.rb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/locomotive/engine.rb b/lib/locomotive/engine.rb index cd02ed29..f34d1a5f 100644 --- a/lib/locomotive/engine.rb +++ b/lib/locomotive/engine.rb @@ -18,7 +18,6 @@ require 'httparty' require 'redcloth' require 'delayed_job_mongoid' require 'zip/zipfilesystem' -# require 'jammit' require 'jammit-s3' $:.unshift File.dirname(__FILE__) @@ -30,5 +29,9 @@ module Locomotive load "railties/tasks.rake" end + initializer "serving fonts" do |app| + app.middleware.insert_after Rack::Lock, '::Locomotive::Middlewares::Fonts', :path => %r{^/fonts} + end + end end diff --git a/lib/locomotive/version.rb b/lib/locomotive/version.rb index 254ce366..daa1e5b5 100644 --- a/lib/locomotive/version.rb +++ b/lib/locomotive/version.rb @@ -1,3 +1,3 @@ module Locomotive #:nodoc - VERSION = "0.0.4.beta9" + VERSION = "0.0.4.beta11" end