aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'mainstream/master'Pratik Naik2009-10-101-6/+36
|\
| * Cleanup whitespace introduced in 8377646 and f4f6888Joshua Peek2009-10-021-35/+34
| |
| * add indifferent access to the attributesTaryn East2009-10-021-1/+2
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * update_attribute(s) added to Active ResourceTaryn East2009-10-021-0/+30
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* | Merge commit 'mainstream/master'Pratik Naik2009-08-311-13/+123
|\|
| * Added first/last/all aliases for equivalent find scopestaryn2009-08-211-0/+22
| | | | | | | | | | | | | | Just a copy from Active Record (with tests). Each is a warpper function for the equivalent scoped call to find eg first is a wrapper for find(:first) Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Added save! which raises ResourceInvalid unless valid?taryn2009-08-191-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to Active Record - it will raise ActiveResouce::ResourceInvalid if the resource is not valid (ie if <tt>valid?</tt> returns false) However - does not raise ActiveResource::ResourceNotFound if the callbacks fail (callbacks have not yet been implemented) - it will just try to save and raise if the callbacks all fail. This is not ideal behaviour - but will do until we decide to change the behaviour of save_with_validations to actually raise (rather than catch) the ResourceInvalid exception. Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Swallow ResourceNotFound error on find_everytaryn2009-08-191-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Active Record does not explode with RecordNotFound if you go looking for a collection of objects - it just returns nil. Thus Active Resource should also not explode. After all - finding no objects that match a set of conditions is not exceptional behaviour - unlike looking for a specific object with a given id (which you'd expect to exist). I've also added documentation to +find+ to reflect this. Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Add support for errors in JSON format.Fabien Jakimowicz2009-08-091-1/+5
| | | | | | | | | | | | [#1956 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Ensure ActiveResource#load works with numeric arrays [Grzegorz Forysinski, ↵Grzegorz Forysinski2009-08-091-1/+7
| | | | | | | | | | | | | | | | Elad Meidar] [#2305 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Active Resource recognizes 410 as Resource Gone now [#2316 state:resolved] ↵Jordan Brough2009-08-091-1/+2
| | | | | | | | | | | | [Jordan Brough, Jatinder Singh] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Add ability to set SSL options on ARes connections.Roy Nicholson2009-08-091-0/+41
| | | | | | | | | | | | [#2370 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Added docs for ActiveResource HTTP proxy supportMarshall Huss2009-08-221-0/+7
|/
* HTTP proxy supportMarshall Huss2009-08-081-0/+22
| | | | | | [#2133 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add wrap_with_notifications helper to AMo observingJoshua Peek2009-07-201-10/+3
|
* Add observing hooks to AResJoshua Peek2009-07-111-2/+9
|
* Move model naming into ActiveModelJoshua Peek2009-06-171-0/+1
|
* Setup ActiveResource autoloadsJoshua Peek2009-06-081-6/+6
|
* JSON: split encoding and coercionJeremy Kemper2009-06-081-8/+3
|
* Tolerate missing loggerJeremy Kemper2009-05-301-1/+1
|
* Use URI and InflectorJeremy Kemper2009-05-301-2/+4
|
* Cherry-pick core extensionsJeremy Kemper2009-05-131-1/+3
|
* Fix tests on 1.8.6Jeremy Kemper2009-05-061-0/+1
|
* Cherry pick Active Support dependencies. Autoload.Jeremy Kemper2009-05-061-3/+13
|
* Remove superfluous CGI requireJeremy Kemper2009-05-051-1/+0
|
* Fix differing rails_to_json arityJeremy Kemper2009-04-261-3/+5
|
* * Add pluggable JSON backends with support for the JSON gem. [rick]rick2009-04-231-1/+4
| | | | | | | | | | | | | | Example: ActiveSupport::JSON.backend = "JSONGem" All internal Rails JSON encoding is now handled by ActiveSupport::JSON.encode(). Use of #to_json is not recommended, as it may clash with other libraries that overwrite it. However, you can recover Rails specific functionality if you really want to use #to_json. gem 'json' ActiveSupport::JSON.backend = "JSONGem" class ActiveRecord::Base alias to_json rails_to_json end
* Merge docrailsPratik Naik2009-03-241-10/+10
|
* Prefer tap to returningJeremy Kemper2009-02-061-6/+6
|
* Improve exception handling when Location header is invalid. [#1192 ↵Bob Aman2009-01-281-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* ActiveResource#eqls? and == should not take into account object identity and ↵Rasik Pandey2009-01-281-2/+2
| | | | | | prefix options should be considered. [#1098 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge with docrailsPratik Naik2008-12-071-0/+2
|
* Make new_record? an alias of new? in ActiveResource to fix problem with ↵miloops2008-12-021-0/+1
| | | | | | route generation in forms. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Add ActiveResource::Base#to_xml and ActiveResource::Base#to_json methods. ↵Cody Fauser2008-10-071-0/+36
| | | | | | [#1011 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* ActiveResource can load array of strings, like serialize :bar, ArrayMatthew Moore2008-10-051-1/+2
| | | | | Signed-off-by: rick <technoweenie@gmail.com> [#1055 state:resolved]
* Merge docrailsPratik Naik2008-09-031-37/+43
|
* Some performance goodness for inheritable attributes.Clemens Kofler2008-09-031-2/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* More symbols for send and respond_to?.Clemens Kofler2008-09-031-2/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-1/+1
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* Format related patches to support serializing data out in the correct format ↵Rasik Pandey2008-08-291-4/+9
| | | | | | | 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>
* Clear prefix_parameters cache when setting prefixTarmo Tänav2008-08-231-0/+3
|
* Add ActiveResource::Base.find(:last). [#754 state:resolved]Adrian Mugnolo2008-08-221-66/+71
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge with docrails.Pratik Naik2008-07-161-11/+11
|
* Fixes parsing deep nested resources from XML. [#380 state:resolved]Luis Hurtado2008-06-091-1/+5
|
* Fixed Base#exists? to check status code as integer [#299 state:resolved] ↵David Heinemeier Hansson2008-06-021-1/+1
| | | | (Wes Oldenbeuving)
* Merge docrails.Pratik Naik2008-05-251-16/+16
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrails:Pratik Naik2008-05-091-129/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0 Author: Xavier Noria <fxn@hashref.com> Date: Thu May 8 23:49:36 2008 +0200 Overall documentation improvement and markup corrections. Zillion changes. commit 2fead68b3192332eee27945ed95a94a64ca73f70 Author: Austin Putman <austin@emmanuel.local> Date: Wed May 7 19:35:46 2008 -0700 Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing. commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1 Author: Teflon Ted <github@rudiment.net> Date: Wed May 7 16:08:49 2008 -0400 Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications. commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 14:00:59 2008 +0200 Applied list conventions in AR::Base commit 5bd18429f09d44e75191bec42a6db04bd33f3030 Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 13:53:35 2008 +0200 Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base commit d912bd5672316454457ae83f6e9dda5197beeb6f Author: Yaroslav Markin <yaroslav@markin.net> Date: Wed May 7 13:50:28 2008 +0400 Add a filter_parameter_logging usage hint to generated ApplicationController. This may help to remind the developer to filter sensitive information from application logs. Closes #11578 commit b243de0db3c2605121e055079854af5090d06374 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:39:47 2008 -0700 doc: disambiguating an example ActiveRecord class commit f81d771f0657ae8375b84a77a059812cce5d6fd9 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:35:05 2008 -0700 doc: ActiveRecord::Reflection::AssociationReflection#through_reflection Added documentation demonstrating the use of #through_reflection for finding intervening reflection objects for HasManyThrough and HasOneThrough. commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:47:41 2008 +0800 Document AttributeAssignmentError and MultiparameterAssignmentErrors. commit 8f463550b597db2156b67733f31aed13487fbc3a Author: John Barnette <jbarnette@gmail.com> Date: Tue May 6 22:46:44 2008 -0700 Killing/fixing a bunch of outdated language in the AR README. commit aca44bcd92ef783abdf484b58abdde6786db0f89 Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:34:52 2008 +0800 Make a note about ActiveResource::Timeouterror being raised when ARes calls timeout. commit 284a930a93fbee16e25d06392779dbf2f03e9e12 Author: Jonathan Dance <jd@wuputah.com> Date: Tue May 6 14:58:26 2008 -0400 improvements to the page caching docs commit 9482da621390c874da7c921c8bd6230caae7035a Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 18:13:40 2008 +0200 validates_numericality_of() "integer" option really is "only_integer" commit e9afd6790a8f530528f6597a7f59bb283be754f6 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:11:59 2008 +0200 Harmonized hash notation in AR::Base commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:06:19 2008 +0200 Turned options into rdoc-lists in AR::Base commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297 Author: Marshall Huss <mwhuss@Macbook.local> Date: Sun May 4 23:21:33 2008 -0400 Added information of how to set element_name in the case the user has a name confliction with an existing model Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation coverage and markupXavier Noria2008-05-021-5/+6
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Introduce ActiveResource::Base.timeout. This allows a timeout to be set on ↵Cheah Chu Yeow2008-04-221-1/+37
| | | | | | the internal Net::HTTP instance ARes uses (default is 60 seconds). Setting a low timeout allows ARes clients to fail-fast in the event of a unresponsive/crashed server, rather than cause cascading failures in your application. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Don't shadow attrs varJeremy Kemper2008-03-301-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de