app/models/phcpress/articles/post.rb in phcpress-7.1.2 vs app/models/phcpress/articles/post.rb in phcpress-8.0.0b

- old
+ new

@@ -1,15 +1,15 @@ module Phcpress class Articles::Post < ApplicationRecord - + # For Image Uploads mount_uploader :pstimage, Phcpress::PstimageUploader - + # Relationships has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy has_many :categories, class_name: 'Phcpress::Modules::Category', :through => :connections - + # Validation for Form Fields validates :psttitle, presence: true, length: { minimum: 3 } @@ -17,8 +17,8 @@ presence: true, length: { minimum: 3 } validates :pststatus, presence: true - + end -end \ No newline at end of file +end