summaryrefslogtreecommitdiff
path: root/app/models/pm.rb
blob: 3d1414921e7851ed0e74d6bf29363dc715c9586a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class Pm < ActiveRecord::Base
	belongs_to :author, class_name: "User"
	belongs_to :recipient, class_name: "User"
	belongs_to :conversation

	def name
		return current_user.name
	end

	def owned_by?(user)
		self.author == user
	end

=begin
	def mailboxer_email(email)
		return current_user.email
	end
=end
end