lib/thread.rb in inbox-0.3.0 vs lib/thread.rb in inbox-0.4.0
- old
+ new
@@ -10,21 +10,15 @@
attr_accessor :snippet
attr_accessor :tags
attr_accessor :message_ids
attr_accessor :draft_ids
- def inflate(json)
- super
- message_ids = json[:messages]
- draft_ids = json[:drafts]
- end
-
def messages
- @messages ||= RestfulModelCollection.new(Message, @_api, @namespace, {:thread=>@id})
+ @messages ||= RestfulModelCollection.new(Message, @_api, @namespace_id, {:thread_id=>@id})
end
def drafts
- @drafts ||= RestfulModelCollection.new(Draft, @_api, @namespace, {:thread=>@id})
+ @drafts ||= RestfulModelCollection.new(Draft, @_api, @namespace_id, {:thread_id=>@id})
end
def update_tags!(tags_to_add = [], tags_to_remove = [])
update('PUT', '', {
:add_tags => tags_to_add,
\ No newline at end of file