]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Have a nice translated alt and title for the sotm and donation.
[rails.git] / app / models / user.rb
index 2adbbb9a19d729acdc5053f54171a1d2d96ee6f5..85d9713169cdb5d148a07114d1947cd6f2c033c9 100644 (file)
@@ -1,6 +1,8 @@
 class User < ActiveRecord::Base
   require 'xml/libxml'
 
+  belongs_to :language, :foreign_key => 'locale'
+  
   has_many :traces
   has_many :diary_entries, :order => 'created_at DESC'
   has_many :messages, :foreign_key => :to_user_id, :order => 'sent_on DESC'