Sha256: 814e4a8ed3fd07d04436acaa2f5ec4af24aaf52e06a69cd928b4eccae7c2c323
Contents?: true
Size: 327 Bytes
Versions: 1
Compression:
Stored size: 327 Bytes
Contents
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 # 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 |
---|---|
phcpress-2.8.0 | app/models/phcpress/news/post.rb |