aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/base.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix issues with ActiveResource collection handling. Closes #6291. [bmilekic]Rick Olson2006-12-121-16/+7
| | | | 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-051-3/+11
| | | | | | 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-161-25/+4
| | | | | | 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-231-0/+4
| | | | 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-061-0/+4
| | | | 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-021-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* workaround collections loaded as :people => { :person => [{..attrs..}, ↵Jeremy Kemper2006-09-221-16/+25
| | | | | | {..attrs..}] } git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fixed failing tests now that non-GET requests are sent with .xml file ext. ↵Rick Olson2006-09-201-1/+6
| | | | | | Extracted #id_from_response as an entry point for customizing how a created resource gets its own ID. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* All verbs should use formatted urls [DHH]David Heinemeier Hansson2006-09-131-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* load expects a HashJeremy Kemper2006-09-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* load nil is noop. use new? instead of new_resource?Jeremy Kemper2006-09-041-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deep hashes are converted into collections of resources. Class attribute ↵Jeremy Kemper2006-09-041-9/+51
| | | | | | writer methods. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4985 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Major updates to ActiveResource, please see changelog and unit tests [Rick ↵Rick Olson2006-09-011-30/+87
| | | | | | Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4890 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* site= accepts URIsJeremy Kemper2006-08-311-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Initial check-in of Active ResourseDavid Heinemeier Hansson2006-06-251-0/+99
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de