Skip to content

Commit

Permalink
Fix config ERB parsing for 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
alexspeller committed May 12, 2011
1 parent ecd67b1 commit 5c8fb3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sunspot_rails/lib/sunspot/rails/configuration.rb
Expand Up @@ -279,7 +279,7 @@ def user_configuration
path = File.join(::Rails.root, 'config', 'sunspot.yml')
if File.exist?(path)
File.open(path) do |file|
processed = ERB.new(File.read(file)).result
processed = ERB.new(file.read).result
YAML.load(processed)[::Rails.env]
end
else
Expand Down

0 comments on commit 5c8fb3c

Please sign in to comment.