aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
Commit message (Collapse)AuthorAgeFilesLines
* Fix active_resource assertions.José Valim2010-09-251-2/+2
|
* Allow per Resource format settingsJacques Crocker2010-09-255-17/+25
| | | | | | | | | | 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>
* Allow ActiveResource to work with non-generated ids [#5660 state:resolved]Jacques Crocker2010-09-255-5/+80
| | | | | | This commit updates new? so that it knows whether or not the record was actually new or not, and doesn't rely solely on the presence of id. This enables the ability to set a custom primary_key that is not autogenerated by the server. Signed-off-by: José Valim <jose.valim@gmail.com>
* resolves rdoc conflictXavier Noria2010-09-231-1/+1
|\
| * Tiny fixes to rdocAlexey Mahotkin2010-09-161-1/+1
| |
* | No need to use inject here.Emilio Tagua2010-09-221-4/+1
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Exception handling more readableThiago Pradi2010-09-191-2/+2
| | | | | | | | | | | | [#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | make sure a Content-Length header exists and that the response.body is not ↵Mike Abner2010-09-181-1/+1
| | | | | | | | nil before trying to call methods on it. Rack does not allow HTTP 204 responses to have a content-length header set. [#5038 state:resolved]
* | test for #5038Neeraj Singh2010-09-181-0/+8
| |
* | Refactor setup methods by extracting them in abstract_unit, remove TODO.Emilio Tagua2010-09-174-237/+103
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Remove TODO and support all expected attributes.Emilio Tagua2010-09-172-13/+47
|/ | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove all deprecation warnings in activeresourceCarlos Antonio da Silva2010-09-062-18/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-023-5/+1
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* ActiveModel#to_xml fix (renamed parameter).Andreas Garnæs2010-09-021-0/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-023-1/+5
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Adding option to ActiveResource to allow you to not reset the previously ↵Mikel Lindsaar2010-08-292-3/+79
| | | | stored requests and responses by passing false to respond_to
* Updating documentation on ActiveResource HTTP Mock and also adding test coverageMikel Lindsaar2010-08-292-3/+65
|
* Update CHANGELOGs for 3.0 release and upcoming 3.1Jeremy Kemper2010-08-291-20/+2
|
* Clean up CHANGELOGsJeremy Kemper2010-08-281-1/+11
|
* lifecycle should be two words, life cycleJaime Iniesta2010-08-262-5/+5
|
* Make ActiveResource::InvalidRequestError more user friendlyMikel Lindsaar2010-08-252-2/+17
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* fix broken relative links [#5415 state:committed]Joost Baaij2010-08-241-1/+1
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Master is now targeting 3.1.0.betaDavid Heinemeier Hansson2010-08-231-2/+2
|
* deletes the rdoc task of each component, they are no longer published separatelyXavier Noria2010-08-201-17/+0
|
* Bump up rdoc to 2.5.10Santiago Pastorino2010-08-181-1/+1
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-147-35/+35
| | | | 's/[ \t]*$//' -i {} \;)
* Merge remote branch 'docrails/master'Xavier Noria2010-08-121-17/+17
|\
| * applied guidelines to "# =>"Paco Guzman2010-08-121-17/+17
| |
* | adds missing requires for Object#tryXavier Noria2010-08-091-1/+5
|/
* fix loading of different elements in array then int and string [#5036 ↵Josef Reidinger2010-08-022-3/+15
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Prep for RCDavid Heinemeier Hansson2010-07-262-1/+6
|
* fix escaping id and parameters in path [#5137 state:resolved]Josef Reidinger2010-07-262-2/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* APIs for individual components are no longer publishedXavier Noria2010-07-261-6/+0
|
* Object#returning removedSantiago Pastorino2010-07-251-1/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* update Rakefiles for RDoc 2.5Aaron Patterson2010-07-231-4/+4
|
* Makes Rakefile activate rdoc >= 2.5.9Santiago Pastorino2010-07-231-1/+1
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* These tests are trusting in the order of the elements so use OrderedHash ↵Santiago Pastorino2010-07-211-1/+2
| | | | instead of Hash
* Change some missing README -> README.rdocSantiago Pastorino2010-07-221-3/+3
|
* Add .rdoc extension to README files.José Valim2010-07-212-1/+1
|
* Make sure ActiveResource::Errors#from_json doesn't pass nil to #from_array ↵David Trasbo2010-06-262-2/+13
| | | | | | [#3650 state:commited] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix bug where ActiveResource::HttpMock would overwrite Accept/Content-Type ↵Elomar França2010-06-242-2/+85
| | | | | | header to application/xml [#4939 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵José Valim2010-06-245-23/+20
| | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
* Merge remote branch 'rails/master'Xavier Noria2010-06-201-2/+3
|\ | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb
| * pdoc tasks publishe APIs in api.rubyonrails.orgXavier Noria2010-06-161-1/+1
| |
| * use RDoc 2.2 to generate the documentation of individual componentsXavier Noria2010-06-161-1/+2
| |
* | Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-151-2/+2
|\ \ | |/ |/|
| * Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-2/+2
| |
* | edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-142-2/+2
| | | | | | | | not "ActiveRecord"
* | There is no type="array" returned with errors. [#3691:resolved]Ryan Bigg2010-06-121-1/+1
|/
* Get ready for beta 4David Heinemeier Hansson2010-06-082-2/+2
|