Class: HasMailbox::Models::MessageCopy
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- HasMailbox::Models::MessageCopy
- Defined in:
- lib/has_mailbox/models/message_copies.rb
Instance Method Summary collapse
Instance Method Details
#delete ⇒ Object
16 17 18 |
# File 'lib/has_mailbox/models/message_copies.rb', line 16 def delete self.destroy end |
#from ⇒ Object
20 21 22 |
# File 'lib/has_mailbox/models/message_copies.rb', line 20 def from "#{self.}".constantize.find_by_id(self.) end |
#to ⇒ Object
24 25 26 |
# File 'lib/has_mailbox/models/message_copies.rb', line 24 def to "#{self.}".constantize.find_by_id(self.recipient_id) end |