ActiveAdmin - changing namespace and links

905 views Asked by At

I'm using activeadmin and my namespace is 'admin'

I want to change the namespace to 'foo' so in initializers/activeadmin.rb I add this line:

config.default_namespace = :foo

But I have about 30 admin_xxxx_path (e.g admin_order_path) in my code which now I need to change to foo_xxxx_path.

Is there a non-manual way of updating those links?

1

There are 1 answers

5
j-dexx On

Ok then, in ActiveAdmin I have no idea because I don't use it but in standard rails you can do:

namespace :admin, :path => "foo" do
  #entries
end