]> git.openstreetmap.org Git - rails.git/blob - app/models/language.rb
Sort out storage and use of user preferred languages.
[rails.git] / app / models / language.rb
1 class Language < ActiveRecord::Base
2   set_primary_key :code
3
4   has_many :diary_entries, :foreign_key => 'language'
5
6   def name
7     name = english_name
8     name += " (#{native_name})" unless native_name.nil?
9     name
10   end  
11 end