JSON generation problems #22

Closed
wants to merge 2 commits into
from

Projects

None yet

2 participants

@filemon
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
filemon commented Apr 4, 2013

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

@kamui
Collaborator
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