summaryrefslogtreecommitdiff
path: root/app/models/pm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/pm.rb')
-rw-r--r--app/models/pm.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/app/models/pm.rb b/app/models/pm.rb
index 0e60f3e..8b06181 100644
--- a/app/models/pm.rb
+++ b/app/models/pm.rb
@@ -1,5 +1,15 @@
class Pm < ActiveRecord::Base
- belongs_to :author
- belongs_to :recipient
+ belongs_to :author, class_name: "User"
+ belongs_to :recipient, class_name: "User"
belongs_to :conversation
+
+ def name
+ return current_user.name
+ end
+
+=begin
+ def mailboxer_email(email)
+ return current_user.email
+ end
+=end
end