mattetti/Weasel-Diesel — pull request #22 by filemon (2013-04-04 12:00:42+00:00)
Title: JSON generation problems

to_json method has to accept additional parameters. Otherwise the below mentioned exception is thrown when trying to generate a json in some cases.

wrong number of arguments (1 for 0)
/Users/jirifabian/.rvm/gems/ruby-2.0.0-p0/gems/weasel_diesel-1.2.1/lib/response.rb:354:in `to_json'
/Users/jirifabian/.rvm/gems/ruby-2.0.0-p0/gems/weasel_diesel-1.2.1/lib/response.rb:88:in `to_json'
/Users/jirifabian/.rvm/gems/ruby-2.0.0-p0/gems/weasel_diesel-1.2.1/lib/response.rb:88:in `to_json'