lib/tracker_api/resources/story.rb in tracker_api-1.6.0 vs lib/tracker_api/resources/story.rb in tracker_api-1.7.0
- old
+ new
@@ -59,10 +59,13 @@
property :external_id
end
# @return [String] Comma separated list of labels.
def label_list
- @label_list ||= labels.collect(&:name).join(',')
+ @label_list ||= begin
+ return if labels.nil?
+ labels.collect(&:name).join(',')
+ end
end
# Adds a new label to the story.
#
# @param [Label|Hash|String] label