lib/you_track/client/models/issue.rb in you_track-0.4.1 vs lib/you_track/client/models/issue.rb in you_track-0.4.2
- old
+ new
@@ -51,9 +51,13 @@
service.projects.get(self.project_id)
end
def save
if new_record?
+ if collection
+ self.project_id ||= collection.project_id
+ end
+
requires :summary, :project_id
response = service.create_issue(
"project" => self.project_id,
"summary" => self.summary,