Skip to content
Permalink
Browse files

Always run Hassle even when not on Heroku.

This has the advantage that you don't have to exclude compiled stylesheets from `public/` and your environment is more consistent between development and production modes.
  • Loading branch information...
jasoncodes committed Dec 11, 2010
1 parent a08c757 commit b2ce7d03b01795a4da5bdbd1447b9c8fe8d82347
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/hassle/railtie.rb
@@ -6,14 +6,7 @@ class Railtie < Rails::Railtie
require 'rack'
require 'sass'
require 'sass/plugin'

if (defined? Rails.env ? Rails.env.production? : "production" == RAILS_ENV)
if defined? Rails.configuration && defined? Rails.configuration.middleware
Rails.configuration.middleware.use(Hassle)
elsif defined? ActionController::Dispatcher && defined? ActionController::Dispatcher.middleware
ActionController::Dispatcher.middleware.use Hassle
end
end
Rails.configuration.middleware.use Hassle
end
end
end

0 comments on commit b2ce7d0

Please sign in to comment.
You can’t perform that action at this time.