Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
2fa_AADevise_routes
# config/initializers/active_admin_devise.rb
module ActiveAdmin
module Devise
def self.controllers
{
sessions: "admin_users/sessions",
passwords: "active_admin/devise/passwords",
unlocks: "active_admin/devise/unlocks",
registrations: "active_admin/devise/registrations",
confirmations: "active_admin/devise/confirmations"
}
end
def self.controllers_for_filters
[
::AdminUsers::SessionsController,
SessionsController,
PasswordsController,
UnlocksController,
RegistrationsController,
ConfirmationsController,
]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.