app/helpers/warclight_helper.rb in warclight-0.5.0 vs app/helpers/warclight_helper.rb in warclight-0.6.0
- old
+ new
@@ -17,8 +17,12 @@
end
end, '')
end
def return_five(options = {})
- options[:value][0, 5].join('; ') + '...'
+ if options[:value].length > 5
+ options[:value][0, 5].join('; ') + '...'
+ else
+ options[:value].join('; ')
+ end
end
end