From bc2a311a38bfc8531c87608a030042fb5d52ec55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 24 Sep 2011 03:13:39 +0300 Subject: [PATCH] Rails is going to load the routes anyway, so we don't need this. --- lib/devise/rails.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devise/rails.rb b/lib/devise/rails.rb index acce5469..9dac1e20 100644 --- a/lib/devise/rails.rb +++ b/lib/devise/rails.rb @@ -11,7 +11,7 @@ module Devise end # Force routes to be loaded if we are doing any eager load. - config.before_eager_load { |app| app.reload_routes! unless ENV["RAILS_ASSETS_PRECOMPILE"] } + config.before_eager_load { |app| app.reload_routes! } initializer "devise.url_helpers" do Devise.include_helpers(Devise::Controllers)