简体   繁体   中英

How can I read config variables from Active Admin?

I have read documentation I did not find how to do this.

I need to get default_namespace setting.

Also if you could explain the process of find that method would be great.

The default_namespace variable is defined in Active Admin via the application.rb file

https://github.com/gregbell/active_admin/blob/9a9693b541460b43cafdb39e67247ae0a3a892b8/lib/active_admin/application.rb

This should help you find the correct call to get what you're looking for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM