aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
Commit message (Collapse)AuthorAgeFilesLines
* Generate rdoc with utf-8 charset. Closes #7188 [manfred, jferris]Jeremy Kemper2007-05-281-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Recognize and raise an exception on 405 Method Not Allowed responses. Closes ↵Jeremy Kemper2007-05-263-0/+24
| | | | | | #7692. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Handle string and symbol param keys when splitting params into prefix params ↵Rick Olson2007-05-093-2/+11
| | | | | | and query params. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make respond_to? work as expectedTobias Lütke2007-05-042-0/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Try the class itself if the ancestor doesnt have anythingDavid Heinemeier Hansson2007-05-021-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BACKWARDS INCOMPATIBLE: Changed the finder API to be more extensible with ↵David Heinemeier Hansson2007-05-014-44/+95
| | | | | | :params and more strict usage of scopes [DHH] Added find-one with symbol [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* change #custom_headers to just #headers [Rick]Rick Olson2007-04-294-19/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for setting custom headers per ActiveResource model [Rick]Rick Olson2007-04-296-24/+70
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug ↵David Heinemeier Hansson2007-04-281-1/+0
| | | | | | by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added find-by-path options to ActiveResource::Base.find [DHH]David Heinemeier Hansson2007-04-274-8/+36
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for using classes from within a single nested module [DHH]David Heinemeier Hansson2007-04-263-5/+47
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added load_attributes_from_response as a way of loading attributes from ↵David Heinemeier Hansson2007-04-262-4/+18
| | | | | | other responses than just create [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The find should instantiate real objects, not return hashesDavid Heinemeier Hansson2007-04-262-3/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for calling custom methods #6979 [rwdaigle]David Heinemeier Hansson2007-04-267-1/+212
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* dont bother merging in prefix_optionsRick Olson2007-04-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* why oh why do i always forget to save the changelogRick Olson2007-04-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove explicit prefix_options parameter for ↵Rick Olson2007-04-243-24/+98
| | | | | | ActiveResource::Base#initialize. Allow ActiveResource::Base.delete with custom prefix. Add ActiveResource::Base#dup [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont insert search parameters into the objectDavid Heinemeier Hansson2007-04-231-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only include relevant filesDavid Heinemeier Hansson2007-04-231-4/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include Active Resource instead of Action Web Service [DHH]David Heinemeier Hansson2007-04-232-12/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Disregard namespaces from the default element name, so Highrise::Person will ↵David Heinemeier Hansson2007-04-196-19/+38
| | | | | | just try to fetch from "/people", not "/highrise/people" [DHH] Added that saves which get a body response (and not just a 201) will use that response to update themselves [DHH] Fixed constant warning when fetching the same object multiple times [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow array and hash query parameters. Closes #7756.Jeremy Kemper2007-03-113-19/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ ↵David Heinemeier Hansson2007-02-041-1/+1
| | | | | | [Chad Fowler] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Squash test warnings.Jeremy Kemper2007-01-242-28/+32
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Loading a resource preserves its prefix_options. Closes #7353. Silence ↵Jeremy Kemper2007-01-243-4/+17
| | | | | | prefix redefinition warnings; fix type in logged error. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Carry over the convenience of #create from ActiveRecord. Closes #7340. ↵Rick Olson2007-01-244-1/+36
| | | | | | [Ryan Daigle] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6025 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Increase ActiveResource::Base test coverage. Closes #7173, #7174 [Rich Collins]Rick Olson2007-01-233-0/+56
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Interpret 422 Unprocessable Entity as ResourceInvalid. Closes #7097.Jeremy Kemper2007-01-175-12/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mega documentation patches. #7025, #7069 [rwdaigle]Rick Olson2007-01-167-25/+336
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5962 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Base.exists?(id, options) and Base#exists? check whether the resource is ↵Jeremy Kemper2007-01-123-0/+38
| | | | | | found. Closes #6970. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Validating save returns boolean; update and create return responses.Jeremy Kemper2006-12-292-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* prefix_parameters pulls /:path/:params from the URI prefixJeremy Kemper2006-12-292-21/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* doh typo in commit from the hipJeremy Kemper2006-12-291-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* generate prefix parameters if undefinedJeremy Kemper2006-12-291-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Query string support. Closes #6855.Jeremy Kemper2006-12-293-6/+64
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5804 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Base#==, eql?, and hash methods. == returns true if its argument is ↵Jeremy Kemper2006-12-223-0/+61
| | | | | | identical to self or if it's an instance of the same class, is not new?, and has the same id. eql? is an alias for ==. hash delegates to id. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* test that element name includes module nestingJeremy Kemper2006-12-211-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* HttpMock InvalidRequestError inspects the mismatched requestJeremy Kemper2006-12-211-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Subclasses share superclass site until explicitly set. This way you can set ↵Jeremy Kemper2006-12-214-18/+45
| | | | | | Superclass.site = ... after subclasses have been defined. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* move http_mock to lib so others can use it in their Ares testsJeremy Kemper2006-12-212-5/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix Rakefile so that the rdoc can be generatedRick Olson2006-12-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow subclassed resources to share the site info [Rick]Rick Olson2006-12-134-1/+49
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix issues with ActiveResource collection handling. Closes #6291. [bmilekic]Rick Olson2006-12-126-26/+82
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5714 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* *_path instance methods. Check for missing/invalid site uri. http_mock ↵Jeremy Kemper2006-12-055-33/+54
| | | | | | response takes message arg, extracts numeric code. Tests log to test/debug.log git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use attr_accessor_with_default to dry up attribute initialization. ↵Marcel Molina2006-11-162-25/+6
| | | | | | References #6538. [Stuart Halloway] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* to_xml needs to accept an options hash to conform with the expectations of ↵Jamis Buck2006-10-241-2/+2
| | | | | | Hash#to_xml git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5362 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add basic logging support for logging outgoing requests.Jamis Buck2006-10-233-2/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Base.delete for deleting resources without having to instantiate them firstJamis Buck2006-10-063-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make #save behavior mimic AR::Base#save (true on success, false on failure)Jamis Buck2006-10-025-12/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assume the passed headers to the ActiveResource HttpMock Request/Response ↵Rick Olson2006-10-021-2/+2
| | | | | | are hashes [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de