質問編集履歴
1
簡潔にする
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
gem 'devise'
|
8
8
|
|
9
|
-
|
9
|
+
・・・
|
10
10
|
|
11
11
|
gem 'omniauth-facebook'
|
12
12
|
|
@@ -26,15 +26,7 @@
|
|
26
26
|
|
27
27
|
devise :database_authenticatable,
|
28
28
|
|
29
|
-
:registerable,
|
30
|
-
|
31
|
-
|
29
|
+
・・・・・
|
32
|
-
|
33
|
-
:rememberable,
|
34
|
-
|
35
|
-
:validatable,
|
36
|
-
|
37
|
-
:confirmable,
|
38
30
|
|
39
31
|
:omniauthable, omniauth_providers: %i[facebook]
|
40
32
|
|
@@ -48,17 +40,13 @@
|
|
48
40
|
|
49
41
|
end
|
50
42
|
|
51
|
-
def failure
|
43
|
+
def failure
|
52
44
|
|
53
45
|
redirect_to root_path, alert: '認証に失敗しました'
|
54
46
|
|
55
47
|
end
|
56
48
|
|
57
49
|
private
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
50
|
|
63
51
|
def callback_from(provider)
|
64
52
|
|