Permalink
Browse files

Merge pull request #18 from sespindola/fix_rails_constants

Replace RAILS_ROOT and RAILS_ENV constants with Rails.root and Rails.env
  • Loading branch information...
2 parents 2b336b0 + a3cf1d5 commit b3c6f84189b430877193cf801340f05b34465a3b André Arko 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 b3c6f84

Please sign in to comment.