lib/devise/rails/routes.rb in devise-0.6.2 vs lib/devise/rails/routes.rb in devise-0.6.3
- old
+ new
@@ -4,9 +4,10 @@
# Ensure Devise modules are included only after loading routes, because we
# need devise_for mappings already declared to create magic filters and
# helpers.
def load_routes_with_devise!
load_routes_without_devise!
+ return if Devise.mappings.empty?
ActionController::Base.send :include, Devise::Controllers::Filters
ActionController::Base.send :include, Devise::Controllers::UrlHelpers
ActionView::Base.send :include, Devise::Controllers::UrlHelpers