Permalink
Browse files

Replaced RAILS_ROOT and RAILS_ENV constants with Rails.root and Rails…

….env respectively.
  • Loading branch information...
1 parent 2b336b0 commit a3cf1d5a281a482131827f89aa86958d8c926999 @sespindola sespindola committed Apr 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/koala/install/templates/config/initializers/koala.rb.tt
@@ -3,7 +3,7 @@
# automatically use Facebook settings from here if none are given
module Facebook
- CONFIG = YAML.load(ERB.new(File.read("#{RAILS_ROOT}/config/facebook.yml")).result)[RAILS_ENV]
+ CONFIG = YAML.load(ERB.new(File.read("#{Rails.root}/config/facebook.yml")).result)[Rails.env]
APP_ID = CONFIG['app_id']
SECRET = CONFIG['secret_key']
end

0 comments on commit a3cf1d5

Please sign in to comment.