Permalink
Browse files

Updating generated initializer to use Rails.root

In order to avoid: uninitialized constant Facebook::RAILS_ROOT
  • Loading branch information...
1 parent 2532a85 commit 835549c2ddded6a22193b213e20d9f069a9ac5e6 Chip Miller committed Dec 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/koala/install/templates/config/initializers/koala.rb.tt
@@ -5,7 +5,7 @@
require "koala"
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']
end

0 comments on commit 835549c

Please sign in to comment.