質問編集履歴
1
質問に対する追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -44,4 +44,37 @@
|
|
44
44
|
Exited with code exit status 127
|
45
45
|
CircleCI received exit code 127
|
46
46
|
|
47
|
+
```
|
48
|
+
|
49
|
+
#追記
|
50
|
+
ログイン周りはdeviseというgemを使用しており、session controllerに関してはデフォルトで使用しています。
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
# frozen_string_literal: true
|
54
|
+
|
55
|
+
class Users::SessionsController < Devise::SessionsController
|
56
|
+
# before_action :configure_sign_in_params, only: [:create]
|
57
|
+
|
58
|
+
# GET /resource/sign_in
|
59
|
+
# def new
|
60
|
+
# super
|
61
|
+
# end
|
62
|
+
|
63
|
+
# POST /resource/sign_in
|
64
|
+
# def create
|
65
|
+
# super
|
66
|
+
# end
|
67
|
+
|
68
|
+
# DELETE /resource/sign_out
|
69
|
+
# def destroy
|
70
|
+
# super
|
71
|
+
# end
|
72
|
+
|
73
|
+
# protected
|
74
|
+
|
75
|
+
# If you have extra params to permit, append them to the sanitizer.
|
76
|
+
# def configure_sign_in_params
|
77
|
+
# devise_parameter_sanitizer.permit(:sign_in, keys: [:attribute])
|
78
|
+
# end
|
79
|
+
end
|
47
80
|
```
|