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
10
11
12
13
# File 'lib/devise/rails/routes.rb', line 5

def finalize_with_devise!
  finalize_without_devise!

  @devise_finalized ||= begin
    Devise.configure_warden!
    Devise.regenerate_helpers!
    true
  end
end