Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

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/
@@ -3,7 +3,7 @@
# automatically use Facebook settings from here if none are given
module Facebook
- CONFIG = YAML.load("#{RAILS_ROOT}/config/facebook.yml")).result)[RAILS_ENV]
+ CONFIG = YAML.load("#{Rails.root}/config/facebook.yml")).result)[Rails.env]
APP_ID = CONFIG['app_id']
SECRET = CONFIG['secret_key']
Something went wrong with that request. Please try again.