lib/generators/active_admin/install/templates/active_admin.rb.erb in activeadmin-0.2.2 vs lib/generators/active_admin/install/templates/active_admin.rb.erb in activeadmin-0.3.0

- old
+ new

@@ -19,11 +19,13 @@ # This will create resources in the HelloWorld module and # will namespace routes to /hello_world/* # # To set no namespace by default, use: # config.default_namespace = false - config.default_namespace = :admin + # + # Default: + # config.default_namespace = :admin # == User Authentication # # Active Admin will automatically call an authentication @@ -43,18 +45,38 @@ # This setting changes the method which Active Admin calls # to return the currently logged in user. config.current_user_method = :current_admin_user + # == Logging Out + # + # Active Admin displays a logout link on each screen. These + # settings configure the location and method used for the link. + # + # This setting changes the path where the link points to. If it's + # a string, the strings is used as the path. If it's a Symbol, we + # will call the method to return the path. + # + # Default: + # config.logout_link_path = :destroy_admin_user_session_path + + # This setting changes the http method used when rendering the + # link. For example :get, :delete, :put, etc.. + # + # Default: + # config.logout_link_method = :get + + # == Admin Comments # - # Admin notes allow you to add notes to any model + # Admin comments allow you to add comments to any model for admin use # - # Admin notes are enabled by default in the default + # Admin comments are enabled by default in the default # namespace only. You can turn them on in a namesapce # by adding them to the comments array. # + # Default: # config.allow_comments_in = [:admin] # == Controller Filters # @@ -64,10 +86,10 @@ # config.before_filter :do_something_awesome # == Register Stylesheets & Javascripts # - # We recomend using the built in Active Admin layout and loading + # We recommend using the built in Active Admin layout and loading # up your own stylesheets / javascripts to customize the look # and feel. # # To load a stylesheet: # config.register_stylesheet 'my_stylesheet.css'