Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

return empty string if categories are null

  • Loading branch information...
commit 8a2b0fb72cba49da2de4a8749b7a71d9a8ac67b3 1 parent 901bb28
@jeffdonthemic jeffdonthemic authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  app/helpers/application_helper.rb
View
1  app/helpers/application_helper.rb
@@ -10,6 +10,7 @@ def s3_image(path, options = {})
def category_display(categories)
cats = ''
+ return cats if categories.nil?
categories['records'].each do |record|
cats = cats + record['Display_Name__c'] + ", "
end
Please sign in to comment.
Something went wrong with that request. Please try again.