Merge pull request #21 from tobenschmidt/master

Call split in channels_for_project only once
This commit is contained in:
Thanos Kyritsis
2017-02-21 12:41:14 +02:00
committed by GitHub

View File

@@ -205,7 +205,8 @@ private
# Channel name '-' or empty '' is reserved for NOT notifying
return [] if val.to_s == ''
return [] if val.to_s == '-'
val.split(",")
return val.split(",") if val.is_a? String
val
end
def detail_to_field(detail)