Merge pull request #558 from metamaps/fix/truncate-bug

merge truncate fix + master into develop
This commit is contained in:
Devin Howard 2016-06-16 15:42:36 +08:00 committed by GitHub
commit 5cf3416dc6

View file

@ -8,7 +8,7 @@ module MapsHelper
map['id'] = m.id
map['label'] = m.name
map['value'] = m.name
map['description'] = m.desc.truncate(30)
map['description'] = m.desc.try(:truncate, 30)
map['permission'] = m.permission
map['topicCount'] = m.topics.count
map['synapseCount'] = m.synapses.count