Permalink
Browse files

bugfix YAML.load needs string... not a IO object.

  • Loading branch information...
hsbt committed Mar 5, 2012
1 parent 5b1b65d commit 3cb2a9b0f4a41f4317b8f0663355ec1c198fc6ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/heroku_scale_scheduler/config.rb
@@ -2,7 +2,7 @@ module HerokuScaleScheduler
class Config
def self.read_config
if File.exists? Rails.root.join('config', 'heroku_ps.yml')
- YAML.load(Rails.root.join('config', 'heroku_ps.yml'))
+ YAML.load(File.read(Rails.root.join('config', 'heroku_ps.yml')))
else
{}
end

0 comments on commit 3cb2a9b

Please sign in to comment.