Permalink
Browse files

Order by key

  • Loading branch information...
1 parent 9f302d8 commit 681aaaf78f61e962c6c2d329000f51f041623cf5 @ZenCocoon ZenCocoon committed Oct 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/tolk/locales_controller.rb
@@ -5,7 +5,7 @@ class LocalesController < Tolk::ApplicationController
def index
@locales = Tolk::Locale.secondary_locales
- @primary_key_scopes = Tolk::Phrase.all(:order => 'phrase.key ASC').collect{|phrase| phrase.key.split('.').first}.uniq
+ @primary_key_scopes = Tolk::Phrase.all(:order => 'tolk_phrases.key ASC').collect{|phrase| phrase.key.split('.').first}.uniq
end
def show

0 comments on commit 681aaaf

Please sign in to comment.