active_admin.rb 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ActiveAdmin.setup do |config|
  2. # == Site Title
  3. #
  4. # Set the title that is displayed on the main layout
  5. # for each of the active admin pages.
  6. #
  7. config.site_title = "Nooo"
  8. # Set the link url for the title. For example, to take
  9. # users to your main site. Defaults to no link.
  10. #
  11. # config.site_title_link = "/"
  12. # Set an optional image to be displayed for the header
  13. # instead of a string (overrides :site_title)
  14. #
  15. # Note: Recommended image height is 21px to properly fit in the header
  16. #
  17. # config.site_title_image = "/images/logo.png"
  18. # == Default Namespace
  19. #
  20. # Set the default namespace each administration resource
  21. # will be added to.
  22. #
  23. # eg:
  24. # config.default_namespace = :hello_world
  25. #
  26. # This will create resources in the HelloWorld module and
  27. # will namespace routes to /hello_world/*
  28. #
  29. # To set no namespace by default, use:
  30. # config.default_namespace = false
  31. #
  32. # Default:
  33. # config.default_namespace = :admin
  34. #
  35. # You can customize the settings for each namespace by using
  36. # a namespace block. For example, to change the site title
  37. # within a namespace:
  38. #
  39. # config.namespace :admin do |admin|
  40. # admin.site_title = "Custom Admin Title"
  41. # end
  42. #
  43. # This will ONLY change the title for the admin section. Other
  44. # namespaces will continue to use the main "site_title" configuration.
  45. # == User Authentication
  46. #
  47. # Active Admin will automatically call an authentication
  48. # method in a before filter of all controller actions to
  49. # ensure that there is a currently logged in admin user.
  50. #
  51. # This setting changes the method which Active Admin calls
  52. # within the controller.
  53. config.authentication_method = :authenticate_admin_user!
  54. # == Current User
  55. #
  56. # Active Admin will associate actions with the current
  57. # user performing them.
  58. #
  59. # This setting changes the method which Active Admin calls
  60. # to return the currently logged in user.
  61. config.current_user_method = :current_admin_user
  62. # == Logging Out
  63. #
  64. # Active Admin displays a logout link on each screen. These
  65. # settings configure the location and method used for the link.
  66. #
  67. # This setting changes the path where the link points to. If it's
  68. # a string, the strings is used as the path. If it's a Symbol, we
  69. # will call the method to return the path.
  70. #
  71. # Default:
  72. config.logout_link_path = :destroy_admin_user_session_path
  73. # This setting changes the http method used when rendering the
  74. # link. For example :get, :delete, :put, etc..
  75. #
  76. # Default:
  77. # config.logout_link_method = :get
  78. # == Admin Comments
  79. #
  80. # Admin comments allow you to add comments to any model for admin use.
  81. # Admin comments are enabled by default.
  82. #
  83. # Default:
  84. # config.allow_comments = true
  85. #
  86. # You can turn them on and off for any given namespace by using a
  87. # namespace config block.
  88. #
  89. # Eg:
  90. # config.namespace :without_comments do |without_comments|
  91. # without_comments.allow_comments = false
  92. # end
  93. # == Controller Filters
  94. #
  95. # You can add before, after and around filters to all of your
  96. # Active Admin resources from here.
  97. #
  98. # config.before_filter :do_something_awesome
  99. # == Register Stylesheets & Javascripts
  100. #
  101. # We recommend using the built in Active Admin layout and loading
  102. # up your own stylesheets / javascripts to customize the look
  103. # and feel.
  104. #
  105. # To load a stylesheet:
  106. # config.register_stylesheet 'my_stylesheet.css'
  107. #
  108. # You can provide an options hash for more control, which is passed along to stylesheet_link_tag():
  109. # config.register_stylesheet 'my_print_stylesheet.css', :media => :print
  110. #
  111. # To load a javascript file:
  112. # config.register_javascript 'my_javascript.js'
  113. end