X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f28b7342c0fa082b3b55eebc5cfdec75c0b0631..4b2ac2ea2b4f914a87537c099f699a5351f22d82:/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)