app/models/phcpress/news/post.rb in phcpress-2.8.0 vs app/models/phcpress/news/post.rb in phcpress-2.8.1
- old
+ new
@@ -6,10 +6,10 @@
# For Image Uploads
mount_uploader :pstimage, Phcpress::PstimageUploader
# Associate Post Authour to User
- belongs_to :user
+ belongs_to :user, class_name: 'Phcengine::User'
# Define r Devise
def authour
self.user_id = current_user.id
end