소스 검색

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

Jan Hovancik 8 년 전
부모
커밋
1c087fb845
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  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)