lib/thread.rb in inbox-0.4.2 vs lib/thread.rb in inbox-0.4.3
- old
+ new
@@ -1,17 +1,19 @@
require 'restful_model'
+require 'time_attr_accessor'
module Inbox
class Thread < RestfulModel
+ extend TimeAttrAccessor
attr_accessor :subject
attr_accessor :participants
- attr_accessor :last_message_timestamp
- attr_accessor :first_message_timestamp
attr_accessor :snippet
attr_accessor :tags
attr_accessor :message_ids
attr_accessor :draft_ids
+ time_attr_accessor :last_message_timestamp
+ time_attr_accessor :first_message_timestamp
def messages
@messages ||= RestfulModelCollection.new(Message, @_api, @namespace_id, {:thread_id=>@id})
end
\ No newline at end of file