]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/language.rb
refresh search if showing and user changes provider
[rails.git] / app / models / language.rb
index 7bb0b6e771a7e692aad56464ec969758524cab27..3a63176f618c52f7788111f91e112a7fcb66ebd9 100644 (file)
@@ -1,5 +1,5 @@
 class Language < ActiveRecord::Base
 class Language < ActiveRecord::Base
-  set_primary_key :code
+  self.primary_key = "code"
 
   has_many :diary_entries, :foreign_key => 'language'
 
 
   has_many :diary_entries, :foreign_key => 'language'