Class: MessageThread

Inherits:
Common::Base show all
Defined in:
app/models/message_thread.rb

Instance Attribute Summary

Attributes inherited from Common::Base

#errors_hash, #metadata

Instance Method Summary collapse

Methods inherited from Common::Base

#changed, #changed?, #changes, default_sort, filterable_attributes, max_per_page, per_page, sortable_attributes

Constructor Details

#initialize(attributes = {}) ⇒ MessageThread

Returns a new instance of MessageThread.



26
27
28
29
# File 'app/models/message_thread.rb', line 26

def initialize(attributes = {})
  super(attributes)
  self.subject = subject ? Nokogiri::HTML.parse(subject) : nil
end