lib/tracker_api/resources/story.rb in tracker_api-1.4.0 vs lib/tracker_api/resources/story.rb in tracker_api-1.4.1
- old
+ new
@@ -72,10 +72,10 @@
else
label
end
# Use attribute writer to get coercion and dirty tracking.
- self.labels = @labels.dup.push(new_label)
+ self.labels = (labels ? labels.dup : []).push(new_label)
end
# Provides a list of all the activity performed on the story.
#
# @param [Hash] params