Permalink
Browse files

Adding optional category_id to Attachment.

  • Loading branch information...
1 parent 64d966d commit 7ef563683376ebdedb63f41aef43ca92659a63f4 Derek Hopper committed Oct 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/basecamp/resources/attachment.rb
View
4 lib/basecamp/resources/attachment.rb
@@ -1,5 +1,5 @@
module Basecamp; class Attachment
- attr_accessor :id, :filename, :content
+ attr_accessor :id, :filename, :content, :category_id
def self.create(filename, content)
returning new(filename, content) do |attachment|
@@ -16,7 +16,7 @@ def attributes
end
def to_xml(options = {})
- { :file => attributes }.to_xml(options)
+ { :file => attributes, :category_id => category_id }.to_xml(options)
end
def inspect

0 comments on commit 7ef5636

Please sign in to comment.