Update foundation_renderer.rb to fully support ruby 1.8.7