X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f28b7342c0fa082b3b55eebc5cfdec75c0b0631..e3fc033c1e34d7eda73ad2a27c1ce80275f86916:/app/models/user.rb 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)