]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Ignore some more generated files
[rails.git] / app / models / user.rb
index 0b8b512ee3bab5becf3bc350fb916026bd51b5b0..f02c9a5cd0067b63afc3984575534c38fb0a550b 100644 (file)
@@ -85,7 +85,7 @@ class User < ActiveRecord::Base
   end
 
   def languages
   end
 
   def languages
-    attribute_present?(:languages) ? read_attribute(:languages).split(",") : []
+    attribute_present?(:languages) ? read_attribute(:languages).split(/ *, */) : []
   end
 
   def languages=(languages)
   end
 
   def languages=(languages)