]> git.openstreetmap.org Git - rails.git/blob - app/models/language.rb
Update key when the zoom changes, even if the language is not english.
[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