mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
51f1f550da
Previously, ActiveResource was using the connection level formatter for get requests. This made it impossible to use custom formatters per resource. Additionally this commit makes the Connection request methods more consistent. It always returns a Response. The base will then decode it each the response using its format setting. Merging this commit will allow users to add custom formatters on a per Resource basis. This enables handling pagination responses from the server side, a very common use case that was previously impossible without monkeypatching XmlFormat. Signed-off-by: José Valim <jose.valim@gmail.com> |
||
---|---|---|
.. | ||
active_resource | ||
active_resource.rb |