1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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 =begin def mailboxer_email(email) return current_user.email end =end end