]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/034_create_languages.rb
Display the right title for friends' changesets
[rails.git] / db / migrate / 034_create_languages.rb
index ab5a7eee65ed3b7122a5e52b31b99b254e2b514f..27994b3fecd16cc7c903ea0289a8f128b91d2847 100644 (file)
@@ -10,7 +10,7 @@ class CreateLanguages < ActiveRecord::Migration
 
     add_primary_key :languages, [:code]
 
-    Language.load(RAILS_ROOT + "/config/languages.yml")
+    Language.load("#{Rails.root}/config/languages.yml")
 
     add_foreign_key :users, [:locale], :languages, [:code]
     add_foreign_key :diary_entries, [:language_code], :languages, [:code]