Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

Sebastian A. Espindola André Arko
Sebastian A. Espindola

Since Rails 3.1 RAILS_ROOT and RAILS_ENV are no longer defined.
I've search for occurrences of these variables and replaced them.

André Arko indirect merged commit b3c6f84 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 7, 2012
  1. Sebastian A. Espindola
This page is out of date. Refresh to see the latest.
2  lib/generators/koala/install/templates/config/initializers/koala.rb.tt
View
@@ -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
Something went wrong with that request. Please try again.