lib/generators/active_admin/install/templates/active_admin.rb.erb in activeadmin-0.4.1 vs lib/generators/active_admin/install/templates/active_admin.rb.erb in activeadmin-0.4.2
- old
+ new
@@ -53,21 +53,21 @@
# method in a before filter of all controller actions to
# ensure that there is a currently logged in admin user.
#
# This setting changes the method which Active Admin calls
# within the controller.
- config.authentication_method = :authenticate_admin_user!
+ config.authentication_method = :authenticate_<%= @underscored_user_name %>!
# == Current User
#
# Active Admin will associate actions with the current
# user performing them.
#
# This setting changes the method which Active Admin calls
# to return the currently logged in user.
- config.current_user_method = :current_admin_user
+ config.current_user_method = :current_<%= @underscored_user_name %>
# == Logging Out
#
# Active Admin displays a logout link on each screen. These
@@ -76,10 +76,10 @@
# 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
+ config.logout_link_path = :destroy_<%= @underscored_user_name %>_session_path
# This setting changes the http method used when rendering the
# link. For example :get, :delete, :put, etc..
#
# Default: