aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/base.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* create option to include_root_in_json for ActiveResource [#2584 state:committed]Santiago Pastorino2010-04-051-0/+9
|
* adds missing requires for Object#duplicable?Xavier Noria2010-03-281-0/+1
|
* Makes ActiveResource work with form_for: - Adds a `build' method that can be ↵Gaël Deest2010-03-271-0/+49
| | | | | used instead of `new' to load a new, unsaved resource from the remote site, filled with the correct default values. - Adds a `persisted?' method that simply returns the opposite value than the `new?' method. [#4222 state:resolved] [#4155 state:resolved] Signed-off-by: wycats <wycats@gmail.com>
* Merge remote branch 'mainstream/master'Pratik Naik2010-01-041-2/+141
|\
| * All ARes modules are safe to deferJoshua Peek2009-12-221-0/+3
| |
| * Use instance_eval for schema blockJoshua Peek2009-12-201-9/+9
| |
| * Rename define_schema => schemaJoshua Peek2009-12-201-23/+20
| |
| * Rename SchemaDefinition => SchemaJoshua Peek2009-12-201-8/+7
| |
| * define_schema for Active ResourceTaryn East2009-12-201-2/+142
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* | Merge remote branch 'mainstream/master'Pratik Naik2009-11-171-16/+36
|\| | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/conversions.rb
| * Ruby 1.9.2: URI.parse and .decode are deprecatedJeremy Kemper2009-11-091-4/+8
| |
| * Remove reliance on string access core extensionJeremy Kemper2009-11-091-12/+15
| |
| * Consolidate Object#to_param and #to_query core extensionsJeremy Kemper2009-11-021-0/+1
| |
| * Digest auth option for ActiveResource.pivotal2009-10-151-0/+12
| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* | 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
|