]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/language.rb
Pass min/max lat/lon to notes index rss builder
[rails.git] / app / models / language.rb
index bb1aa4bd26016758ad3d8b66d09a7527a72b8ad8..1158721e8de9cf062ff911bd6d6ee5028393d445 100644 (file)
@@ -7,10 +7,10 @@
 #  native_name  :string
 #
 
 #  native_name  :string
 #
 
-class Language < ActiveRecord::Base
+class Language < ApplicationRecord
   self.primary_key = "code"
 
   self.primary_key = "code"
 
-  has_many :diary_entries, :foreign_key => "language"
+  has_many :diary_entries, :foreign_key => "language", :inverse_of => :language
 
   def self.load(file)
     Language.transaction do
 
   def self.load(file)
     Language.transaction do