You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a custom user model as per your directions on how to implement devise with camaleon. When I try to delete a user from the admin panel, it fails because it cannot find the user column in the comments table. Inspection of the code shows that the foreign key specification is missing from the association on line 18 of CamaleonCms::UserMethods:
I am using a custom user model as per your directions on how to implement devise with camaleon. When I try to delete a user from the admin panel, it fails because it cannot find the user column in the comments table. Inspection of the code shows that the foreign key specification is missing from the association on line 18 of CamaleonCms::UserMethods:
has_many :all_comments, class_name: 'CamaleonCms::PostComment'
Should be:
has_many :all_comments, class_name: 'CamaleonCms::PostComment', foreign_key: :user_id
The text was updated successfully, but these errors were encountered: