Changed code for getting parser class name.

Peddler wasn't working for me under ruby 1.9.3 with rails 3.2. After some research I found an alternative to getting the parser class from the request which does work.