Passing class_name as string in members.requested_crops

This commit is contained in:
Brenda Wallace committed 2018-04-02 11:16:50 +12:00
1 parent 2e339ce45d
commit 7cda0aacc5
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ class Member < ApplicationRecord
has_many :sent_notifications, foreign_key: 'sender_id'
has_many :authentications
has_many :photos
has_many :requested_crops, class_name: Crop, foreign_key: 'requester_id'
has_many :requested_crops, class_name: 'Crop', foreign_key: 'requester_id'
has_many :likes, dependent: :destroy
has_many :follows, class_name: "Follow", foreign_key: "follower_id", dependent: :destroy
has_many :inverse_follows, class_name: "Follow", foreign_key: "followed_id", dependent: :destroy