Sha256: 8e0695fc44d8769cd982ff37013d75bfdc9e0f1d8d06bc0b2f5e51f76499657f

Contents?: true

Size: 329 Bytes

Versions: 1

Compression:

Stored size: 329 Bytes

Contents

module Phcpresspro
	class Blog::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/blog/post.rb