Class: ActionController::Routing::RouteSet
- Inherits:
-
Object
- Object
- ActionController::Routing::RouteSet
- Defined in:
- lib/devise/rails/routes.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Mapper
Instance Method Summary collapse
-
#load_routes_with_devise! ⇒ Object
Ensure Devise modules are included only after loading routes, because we need devise_for mappings already declared to create magic filters and helpers.
Instance Method Details
#load_routes_with_devise! ⇒ Object
Ensure Devise modules are included only after loading routes, because we need devise_for mappings already declared to create magic filters and helpers.
7 8 9 10 11 12 13 14 |
# File 'lib/devise/rails/routes.rb', line 7 def load_routes_with_devise! load_routes_without_devise! ActionController::Base.send :include, Devise::Controllers::Filters ActionController::Base.send :include, Devise::Controllers::UrlHelpers ActionView::Base.send :include, Devise::Controllers::UrlHelpers end |