Use Rails.xxx instead of RAILS_XXX
This commit is contained in:
parent
c9fa49c994
commit
e1213a4651
8 changed files with 17 additions and 17 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue