Avoid loading routes if we are actually precompiling assets.

This commit is contained in:
José Valim
2011-09-22 21:56:18 +03:00
parent e4902af15a
commit f19955705f

View File

@@ -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! }
config.before_eager_load { |app| app.reload_routes! unless ENV["RAILS_ASSETS_PRECOMPILE"] }
initializer "devise.url_helpers" do
Devise.include_helpers(Devise::Controllers)