Skip to content

Commit

Permalink
Bring in tryms Rails 3 fix as it preserves backwards compatibility.
Browse files Browse the repository at this point in the history
Merge remote branch 'trym/master' into trym

Conflicts:
	init.rb
  • Loading branch information
koppen committed Apr 5, 2010
2 parents 08107e1 + b585179 commit c14e9db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if Rails.env.production?
Rails::Application.middleware.use Hassle
if (defined? Rails.env ? Rails.env : RAILS_ENV) == "production"
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

0 comments on commit c14e9db

Please sign in to comment.