Sha256: 1b7eaac25bb43f2a6e622e3fa4392721fab7ad859818f6716db5594acdc537cf
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
module Phcpresspro class News::Post < ActiveRecord::Base # Filters Before Post before_create :authour # For Image Uploads mount_uploader :pstimage, Phcpresspro::PstimageUploader # Associate Post Authour to User belongs_to :user # Define r Devise def authour self.user_id = current_user.id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcpresspro-1.6.0 | app/models/phcpresspro/news/post.rb |