Skip to content
Browse files

Quick fix for active_admin not honouring subURI when redirecting upon…

… successful logout from admin. Takes you to /admin instead of /some_subURI/admin.
  • Loading branch information...
1 parent b1dc4f2 commit e1b087edbfc2252e63a837dd96d2d7aacbe24160 Swartz committed Mar 24, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/active_admin/devise.rb
1 lib/active_admin/devise.rb
@@ -34,6 +34,7 @@ module Controller
# Redirect to the default namespace on logout
def root_path
+ Rails.configuration.action_controller[:relative_url_root] +
if ActiveAdmin.application.default_namespace

0 comments on commit e1b087e

Please sign in to comment.
Something went wrong with that request. Please try again.