X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f28b7342c0fa082b3b55eebc5cfdec75c0b0631..546250f60b923c120960e7a1ad9f8176008ce6eb:/app/models/user.rb?ds=inline diff --git a/app/models/user.rb b/app/models/user.rb index 0b8b512ee..f02c9a5cd 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -85,7 +85,7 @@ class User < ActiveRecord::Base end def languages - attribute_present?(:languages) ? read_attribute(:languages).split(",") : [] + attribute_present?(:languages) ? read_attribute(:languages).split(/ *, */) : [] end def languages=(languages)