Hiya,

So, what was the impetus behind having ParamsParser create Date and 
DateTime objects out of application/json requests?  The project I'm on 
expects parameters to be received as standard types (bools, numbers, 
strings, arrays, and hashes).  Rails shouldn't try to convert objects that 
are explicitly passed as these types; it should be up to the application to 
do that.

example:

JSON
request_parameters:{"foo":"2012-05-12"}

Should get to our controller as
params[:foo] => "2012-05-12"

But instead comes in as
params[:foo] => Date:<0x2af5607>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/X6I3c0vSGrUJ.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-core+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to