JSON generation problems #22

wants to merge 2 commits into


None yet

2 participants

filemon commented Apr 4, 2013

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:into_json'
/Users/jirifabian/.rvm/gems/ruby-2.0.0-p0/gems/weasel_diesel-1.2.1/lib/response.rb:88:in `to_json'

filemon commented Apr 4, 2013

code snippet causing issues -> https://gist.github.com/filemon/5309833

kamui commented Aug 27, 2013

I no longer get an exception here, but the first array is ignored. This will fixed by #18.

@kamui kamui closed this Aug 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment