回答編集履歴
1
あ
answer
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:omniauthable
|
|
22
22
|
has_many :reviews, dependent: :destroy
|
|
23
23
|
has_many :user_images
|
|
24
|
-
|
|
24
|
+
accepts_nested_attributes_for :user_images#追加
|
|
25
25
|
class << self
|
|
26
26
|
def find_for_facebook_oauth(auth)
|
|
27
27
|
where(provider: auth.provider, uid: auth.uid).first_or_create do |user|
|