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

Replace RAILS_ROOT and RAILS_ENV constants with Rails.root and Rails.env #18

Merged
merged 1 commit into from
Apr 7, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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