fixes #1148 use to_hash instead of to_h
Merge pull request #1153 from concerto/1148-params-fix

fixes #1148 under ruby 1.9