Josh Kalderimis
00958696d8
corrected some further tests and docs for the ARes change to json change
2011-05-18 00:34:10 -04:00
Josh Kalderimis
6b4bbb4274
updated all the tests in ARes to work with json
2011-05-18 00:34:09 -04:00
Jacques Crocker
51f1f550da
Allow per Resource format settings
...
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>
2010-09-25 13:54:09 +02:00
Xavier Noria
76f024ac8d
adds missing requires for Object#blank? and Object#present?
2010-03-28 14:15:02 +02:00
Joshua Peek
27766ccf3b
Make use of AS::Concern in ActiveResource
2009-06-08 20:52:27 -05:00
Joshua Peek
0b694a4ff4
Setup ActiveResource autoloads
2009-06-08 20:48:14 -05:00
Jeremy Kemper
6d4a4fabbb
Cherry pick Active Support dependencies. Autoload.
2009-05-06 00:14:55 -07:00
David Heinemeier Hansson
dffc2e2b64
Fixed that ActiveResource#post would post an empty string when it shouldn't be posting anything (Paolo Angelini) [ #525 state:committed]
2008-10-30 12:47:23 +01:00
Jeremy Kemper
a1eb4e11c2
Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, but it has since been removed from 1.9.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Conflicts:
actionpack/test/controller/layout_test.rb
2008-08-31 13:20:15 -07:00
Rasik Pandey
16b9a554db
Format related patches to support serializing data out in the correct format with correct http request headers per http method type [ #450 state:resolved]
...
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-08-29 18:45:39 -07:00
Pratik Naik
0432d15164
Merge with docrails.
2008-07-16 13:01:23 +01:00
Pratik Naik
98dc582742
Merge docrails.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-25 12:29:00 +01:00
Marcel Molina
349df75605
Reference to :element option in documentation should be :member. Closes #10905 [fxn]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-23 17:04:49 +00:00
Rick Olson
c54b915825
Support agnostic formats when calling custom methods. Closes #10635 [joerichsen]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-28 17:03:58 +00:00
Jeremy Kemper
470fc02096
Document custom methods. Closes #10589 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8472 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-21 21:42:27 +00:00
Jeremy Kemper
0ee1cb2cd3
Ruby 1.9 compat, consistent load paths
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-02 05:32:14 +00:00
David Heinemeier Hansson
ae4838fff2
Big documentation upgrade for ARes ( closes #8694 ) [jeremymcanally]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-23 17:29:54 +00:00
Tobias Lütke
bf280157d9
Ensure that post and put requests pass in Content-Length to the server.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-19 18:40:28 +00:00
Rick Olson
8e8fd99d7f
change #custom_headers to just #headers [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-29 04:46:14 +00:00
Rick Olson
bd50d82f70
Add support for setting custom headers per ActiveResource model [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-29 03:14:36 +00:00
David Heinemeier Hansson
9b8399fb7f
Added support for calling custom methods #6979 [rwdaigle]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-26 01:53:01 +00:00