Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #18 from sespindola/fix_rails_constants
Browse files Browse the repository at this point in the history
Replace RAILS_ROOT and RAILS_ENV constants with Rails.root and Rails.env
  • Loading branch information
André Arko committed Apr 7, 2012
2 parents 2b336b0 + a3cf1d5 commit b3c6f84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3c6f84

Please sign in to comment.