Class: ActionDispatch::Routing::RouteSet

Inherits:
Object
  • Object
show all
Defined in:
lib/devise/rails/routes.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#finalize_with_devise!Object

Ensure Devise modules are included only after loading routes, because we need devise_for mappings already declared to create filters and helpers.



5
6
7
8
9
# File 'lib/devise/rails/routes.rb', line 5

def finalize_with_devise!
  finalize_without_devise!
  Devise.configure_warden!
  ActionController::Base.send :include, Devise::Controllers::Helpers
end