app/models/phcpress/news/post.rb in phcpress-2.9.0 vs app/models/phcpress/news/post.rb in phcpress-2.9.1
- old
+ new
@@ -1,19 +1,11 @@
module Phcpress
class News::Post < ActiveRecord::Base
- # Filters Before Post
- before_create :authour
-
# For Image Uploads
mount_uploader :pstimage, Phcpress::PstimageUploader
# Associate Post Authour to User
belongs_to :user, class_name: 'Devise:User'
-
- # Define r Devise
- def authour
- self.user_id = current_user.id
- end
end
end