svenfuchs/globalize3 — Issue #110: exception when sorting locales that are identified as symbols in translated_locales
Author: ola-linden
Created: 2012-02-16 19:20:13+00:00
State: open

```
undefined method `<=>' for :"de-DE":Symbol
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/bundler/gems/globalize3-cda6ddab725c/lib/globalize/active_record/translation.rb:20:in `sort'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/bundler/gems/globalize3-cda6ddab725c/lib/globalize/active_record/translation.rb:20:in `translated_locales'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/bundler/gems/globalize3-cda6ddab725c/lib/globalize/active_record/class_methods.rb:4:in `__send__'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/bundler/gems/globalize3-cda6ddab725c/lib/globalize/active_record/class_methods.rb:4:in `translated_locales'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/bundler/gems/globalize3-cda6ddab725c/lib/globalize/active_record/class_methods.rb:11:in `with_translations'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/bundler/gems/globalize3-cda6ddab725c/lib/globalize/active_record/class_methods.rb:23:in `with_translated_attribute'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-3.0.11/lib/active_record/relation.rb:370:in `send'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-3.0.11/lib/active_record/relation.rb:370:in `method_missing'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-3.0.11/lib/active_record/relation.rb:125:in `scoping'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-3.0.11/lib/active_record/relation.rb:370:in `method_missing'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/bundler/gems/globalize3-cda6ddab725c/lib/globalize/active_record/class_methods.rb:92:in `method_missing'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/bundler/gems/globalize3-cda6ddab725c/lib/globalize/active_record/class_methods.rb:91:in `each'
/Users/ola/.rvm/gems/ree-1.8.7-2010.02/bundler/gems/globalize3-cda6ddab725c/lib/globalize/active_record/class_methods.rb:91:in `method_missing'
```