fork download
  1. ActiveAdmin.setup do |config|
  2. require 'activeadmin'
  3. # == Site Title
  4. #
  5. # Set the title that is displayed on the main layout
  6. # for each of the active admin pages.
  7. #
  8. config.site_title = "Myapp"
  9.  
  10.  
  11. # Set the link url for the title. For example, to take
  12. # users to your main site. Defaults to no link.
  13. #
  14. # config.site_title_link = "/"
  15.  
  16. # Set an optional image to be displayed for the header
  17. # instead of a string (overrides :site_title)
  18. #
  19. # Note: Aim for an image that's 21px high so it fits in the header.
  20. #
  21. # config.site_title_image = "logo.png"
  22.  
  23. # == Default Namespace
  24. #
  25. # Set the default namespace each administration resource
  26. # will be added to.
  27. #
  28. # eg:
  29. # config.default_namespace = :hello_world
  30. #
  31. # This will create resources in the HelloWorld module and
  32. # will namespace routes to /hello_world/*
  33. #
  34. # To set no namespace by default, use:
  35. # config.default_namespace = false
  36. #
  37. # Default:
  38. # config.default_namespace = :admin
  39. #
  40. # You can customize the settings for each namespace by using
  41. # a namespace block. For example, to change the site title
  42. # within a namespace:
  43. #
  44. # config.namespace :admin do |admin|
  45. # admin.site_title = "Custom Admin Title"
  46. # end
  47. #
  48. # This will ONLY change the title for the admin section. Other
  49. # namespaces will continue to use the main "site_title" configuration.
  50.  
  51. # == User Authentication
  52. #
  53. # Active Admin will automatically call an authentication
  54. # method in a before filter of all controller actions to
  55. # ensure that there is a currently logged in admin user.
  56. #
  57. # This setting changes the method which Active Admin calls
  58. # within the application controller.
  59. config.authentication_method = :authenticate_admin_user!
  60.  
  61. # == User Authorization
  62. #
  63. # Active Admin will automatically call an authorization
  64. # method in a before filter of all controller actions to
  65. # ensure that there is a user with proper rights. You can use
  66. # CanCanAdapter or make your own. Please refer to documentation.
  67. # config.authorization_adapter = ActiveAdmin::CanCanAdapter
  68.  
  69. # In case you prefer Pundit over other solutions you can here pass
  70. # the name of default policy class. This policy will be used in every
  71. # case when Pundit is unable to find suitable policy.
  72. # config.pundit_default_policy = "MyDefaultPunditPolicy"
  73.  
  74. # You can customize your CanCan Ability class name here.
  75. # config.cancan_ability_class = "Ability"
  76.  
  77. # You can specify a method to be called on unauthorized access.
  78. # This is necessary in order to prevent a redirect loop which happens
  79. # because, by default, user gets redirected to Dashboard. If user
  80. # doesn't have access to Dashboard, he'll end up in a redirect loop.
  81. # Method provided here should be defined in application_controller.rb.
  82. # config.on_unauthorized_access = :access_denied
  83.  
  84. # == Current User
  85. #
  86. # Active Admin will associate actions with the current
  87. # user performing them.
  88. #
  89. # This setting changes the method which Active Admin calls
  90. # (within the application controller) to return the currently logged in user.
  91. config.current_user_method = :current_admin_user
  92.  
  93. # == Logging Out
  94. #
  95. # Active Admin displays a logout link on each screen. These
  96. # settings configure the location and method used for the link.
  97. #
  98. # This setting changes the path where the link points to. If it's
  99. # a string, the strings is used as the path. If it's a Symbol, we
  100. # will call the method to return the path.
  101. #
  102. # Default:
  103. config.logout_link_path = :destroy_admin_user_session_path
  104.  
  105. # This setting changes the http method used when rendering the
  106. # link. For example :get, :delete, :put, etc..
  107. #
  108. # Default:
  109. # config.logout_link_method = :get
  110.  
  111. # == Root
  112. #
  113. # Set the action to call for the root path. You can set different
  114. # roots for each namespace.
  115. #
  116. # Default:
  117. # config.root_to = 'dashboard#index'
  118.  
  119. # == Admin Comments
  120. #
  121. # This allows your users to comment on any resource registered with Active Admin.
  122. #
  123. # You can completely disable comments:
  124. # config.comments = false
  125. #
  126. # You can change the name under which comments are registered:
  127. # config.comments_registration_name = 'AdminComment'
  128. #
  129. # You can change the order for the comments and you can change the column
  130. # to be used for ordering:
  131. # config.comments_order = 'created_at ASC'
  132. #
  133. # You can disable the menu item for the comments index page:
  134. # config.comments_menu = false
  135. #
  136. # You can customize the comment menu:
  137. # config.comments_menu = { parent: 'Admin', priority: 1 }
  138.  
  139. # == Batch Actions
  140. #
  141. # Enable and disable Batch Actions
  142. #
  143. config.batch_actions = true
  144. # == Controller Filters
  145. #
  146. # You can add before, after and around filters to all of your
  147. # Active Admin resources and pages from here.
  148. #
  149. # config.before_filter :do_something_awesome
  150.  
  151. # == Localize Date/Time Format
  152. #
  153. # Set the localize format to display dates and times.
  154. # To understand how to localize your app with I18n, read more at
  155. # https://g...content-available-to-author-only...b.com/svenfuchs/i18n/blob/master/lib%2Fi18n%2Fbackend%2Fbase.rb#L52
  156. #
  157. config.localize_format = :long
  158.  
  159. # == Setting a Favicon
  160. #
  161. # config.favicon = 'favicon.ico'
  162.  
  163. # == Meta Tags
  164. #
  165. # Add additional meta tags to the head element of active admin pages.
  166. #
  167. # Add tags to all pages logged in users see:
  168. # config.meta_tags = { author: 'My Company' }
  169.  
  170. # By default, sign up/sign in/recover password pages are excluded
  171. # from showing up in search engine results by adding a robots meta
  172. # tag. You can reset the hash of meta tags included in logged out
  173. # pages:
  174. # config.meta_tags_for_logged_out_pages = {}
  175.  
  176. # == Removing Breadcrumbs
  177. #
  178. # Breadcrumbs are enabled by default. You can customize them for individual
  179. # resources or you can disable them globally from here.
  180. #
  181. # config.breadcrumb = false
  182.  
  183. # == Register Stylesheets & Javascripts
  184. #
  185. # We recommend using the built in Active Admin layout and loading
  186. # up your own stylesheets / javascripts to customize the look
  187. # and feel.
  188. #
  189. # To load a stylesheet:
  190. # config.register_stylesheet 'my_stylesheet.css'
  191. #
  192. # You can provide an options hash for more control, which is passed along to stylesheet_link_tag():
  193. # config.register_stylesheet 'my_print_stylesheet.css', media: :print
  194. #
  195. # To load a javascript file:
  196. # config.register_javascript 'my_javascript.js'
  197.  
  198. # == CSV options
  199. #
  200. # Set the CSV builder separator
  201. # config.csv_options = { col_sep: ';' }
  202. #
  203. # Force the use of quotes
  204. # config.csv_options = { force_quotes: true }
  205.  
  206. # == Menu System
  207. #
  208. # You can add a navigation menu to be used in your application, or configure a provided menu
  209. #
  210. # To change the default utility navigation to show a link to your website & a logout btn
  211. #
  212. # config.namespace :admin do |admin|
  213. # admin.build_menu :utility_navigation do |menu|
  214. # menu.add label: "My Great Website", url: "http://w...content-available-to-author-only...e.com", html_options: { target: :blank }
  215. # admin.add_logout_button_to_menu menu
  216. # end
  217. # end
  218. #
  219. # If you wanted to add a static menu item to the default menu provided:
  220. #
  221. # config.namespace :admin do |admin|
  222. # admin.build_menu :default do |menu|
  223. # menu.add label: "My Great Website", url: "http://w...content-available-to-author-only...e.com", html_options: { target: :blank }
  224. # end
  225. # end
  226.  
  227. # == Download Links
  228. #
  229. # You can disable download links on resource listing pages,
  230. # or customize the formats shown per namespace/globally
  231. #
  232. # To disable/customize for the :admin namespace:
  233. #
  234. # config.namespace :admin do |admin|
  235. #
  236. # # Disable the links entirely
  237. # admin.download_links = false
  238. #
  239. # # Only show XML & PDF options
  240. # admin.download_links = [:xml, :pdf]
  241. #
  242. # # Enable/disable the links based on block
  243. # # (for example, with cancan)
  244. # admin.download_links = proc { can?(:view_download_links) }
  245. #
  246. # end
  247.  
  248. # == Pagination
  249. #
  250. # Pagination is enabled by default for all resources.
  251. # You can control the default per page count for all resources here.
  252. #
  253. # config.default_per_page = 30
  254. #
  255. # You can control the max per page count too.
  256. #
  257. # config.max_per_page = 10_000
  258.  
  259. # == Filters
  260. #
  261. # By default the index screen includes a "Filters" sidebar on the right
  262. # hand side with a filter for each attribute of the registered model.
  263. # You can enable or disable them for all resources here.
  264. #
  265. # config.filters = true
  266. #
  267. # By default the filters include associations in a select, which means
  268. # that every record will be loaded for each association.
  269. # You can enabled or disable the inclusion
  270. # of those filters by default here.
  271. #
  272. # config.include_default_association_filters = true
  273. end
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
ActiveAdmin.setup do |config|
^
Main.java:2: error: unclosed character literal
require 'activeadmin'
        ^
Main.java:2: error: illegal line end in character literal
require 'activeadmin'
                    ^
Main.java:3: error: illegal character: '#'
  # == Site Title
  ^
Main.java:4: error: illegal character: '#'
  #
  ^
Main.java:5: error: illegal character: '#'
  # Set the title that is displayed on the main layout
  ^
Main.java:6: error: illegal character: '#'
  # for each of the active admin pages.
  ^
Main.java:7: error: illegal character: '#'
  #
  ^
Main.java:11: error: illegal character: '#'
  # Set the link url for the title. For example, to take
  ^
Main.java:12: error: illegal character: '#'
  # users to your main site. Defaults to no link.
  ^
Main.java:13: error: illegal character: '#'
  #
  ^
Main.java:14: error: illegal character: '#'
  # config.site_title_link = "/"
  ^
Main.java:16: error: illegal character: '#'
  # Set an optional image to be displayed for the header
  ^
Main.java:17: error: illegal character: '#'
  # instead of a string (overrides :site_title)
  ^
Main.java:18: error: illegal character: '#'
  #
  ^
Main.java:19: error: illegal character: '#'
  # Note: Aim for an image that's 21px high so it fits in the header.
  ^
Main.java:19: error: unclosed character literal
  # Note: Aim for an image that's 21px high so it fits in the header.
                               ^
Main.java:20: error: illegal character: '#'
  #
  ^
Main.java:21: error: illegal character: '#'
  # config.site_title_image = "logo.png"
  ^
Main.java:23: error: illegal character: '#'
  # == Default Namespace
  ^
Main.java:24: error: illegal character: '#'
  #
  ^
Main.java:25: error: illegal character: '#'
  # Set the default namespace each administration resource
  ^
Main.java:26: error: illegal character: '#'
  # will be added to.
  ^
Main.java:27: error: illegal character: '#'
  #
  ^
Main.java:28: error: illegal character: '#'
  # eg:
  ^
Main.java:29: error: illegal character: '#'
  #   config.default_namespace = :hello_world
  ^
Main.java:30: error: illegal character: '#'
  #
  ^
Main.java:31: error: illegal character: '#'
  # This will create resources in the HelloWorld module and
  ^
Main.java:32: error: illegal character: '#'
  # will namespace routes to /hello_world/*
  ^
Main.java:32: error: unclosed comment
  # will namespace routes to /hello_world/*
                                         ^
30 errors
stdout
Standard output is empty