Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replaced RAILS_ROOT and RAILS_ENV constants with Rails.root and Rails…

….env respectively.
  • Loading branch information...
commit a3cf1d5a281a482131827f89aa86958d8c926999 1 parent 2b336b0
Sebastian A. Espindola sespindola authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.