Procházet zdrojové kódy

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

Jan Hovancik před 8 roky
rodič
revize
1c087fb845
2 změnil soubory, kde provedl 8 přidání a 2 odebrání
  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)