added condition to active_admin route
merge #626