lib/pivotal-tracker/story.rb in pivotal-tracker-0.5.8 vs lib/pivotal-tracker/story.rb in pivotal-tracker-0.5.9
- old
+ new
@@ -41,10 +41,10 @@
element :jira_url, String
element :other_id, Integer
element :integration_id, Integer
element :deadline, DateTime # Only available for Release stories
- has_many :attachments, Attachment, :tag => 'attachments'
+ has_many :attachments, Attachment, :tag => 'attachments', :xpath => '//attachments'
def initialize(attributes={})
if attributes[:owner]
self.project_id = attributes.delete(:owner).id
end