Fix for Ruby 1.8.7

Check for parameters method so we don't blow up on Ruby 1.8.7..