app/models/phcpress/articles/post.rb in phcpress-5.0.0 vs app/models/phcpress/articles/post.rb in phcpress-5.1.0
- old
+ new
@@ -3,10 +3,10 @@
# For Image Uploads
mount_uploader :pstimage, Phcpress::PstimageUploader
# Relationships
- has_many :connections, class_name: 'Modules::Connection'
- has_many :categories, class_name: 'Modules::Category', :through => :connections
+ has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy
+ has_many :categories, class_name: 'Phcpress::Modules::Category', :through => :connections
end
end
\ No newline at end of file