Explorar o código

Fixes documentation and template for `user_method` and `user_name` (#112)

Jan Hovancik %!s(int64=8) %!d(string=hai) anos
pai
achega
1c087fb845
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  1. 4 1
      README.md
  2. 4 1
      lib/generators/blazer/templates/config.yml

+ 4 - 1
README.md

@@ -663,7 +663,10 @@ audit: true
 # class name of the user model
 # user_class: User
 
-# method name for the user model
+# method name for the current user
+# user_method: current_user
+
+# method name for the display name
 # user_name: name
 
 # email to send checks from

+ 4 - 1
lib/generators/blazer/templates/config.yml

@@ -41,7 +41,10 @@ audit: true
 # class name of the user model
 # user_class: User
 
-# method name for the user model
+# method name for the current user
+# user_method: current_user
+
+# method name for the display name
 # user_name: name
 
 # optional auth method to use as a before_action (default: nil)