I have 2 models:
- Users
- Suppliers
and I want to provide 2 isolated Active Admin interfaces. They both have devise routes:
devise_for :users, ActiveAdmin::Devise.config
devise_for :suppliers, ActiveAdmin::Devise.config (can I somehow say ActiveAdmin2::Devise.config)
User will have access to Products, Orders and Supplier will have access to products only.
Ideally, I want to have different Folders in the app and present different data.
user/order.rb
ActiveAdmin.register Order do
filter :email
filter :created_at , :label => "Order Creation Date"
filter :order_created
supplier/order.rb
ActiveAdmin.register Order do
filter :email
Is there any way to initialize 2 ActiveAdmin Classes and run them in parallel?
Any other better way to make it work under the same website/app?