Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Added save! which raises ResourceInvalid unless valid? | taryn | 2009-08-19 | 1 | -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_every | taryn | 2009-08-19 | 1 | -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> | |||||
* | Added validations to ActiveResource. Added a smoke test to see if we can add ↵ | taryn | 2009-08-19 | 1 | -15/+49 | |
| | | | | | | a validation and use it, and add a validates callback and use it. Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Add support for errors in JSON format. | Fabien Jakimowicz | 2009-08-09 | 2 | -5/+25 | |
| | | | | | | [#1956 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Ensure ActiveResource#load works with numeric arrays [Grzegorz Forysinski, ↵ | Grzegorz Forysinski | 2009-08-09 | 1 | -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 Brough | 2009-08-09 | 3 | -1/+7 | |
| | | | | | | [Jordan Brough, Jatinder Singh] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Make ActiveResource#exists? work [#3020 state:resolved] | Jatinder Singh | 2009-08-09 | 1 | -2/+3 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Add ability to set SSL options on ARes connections. | Roy Nicholson | 2009-08-09 | 3 | -3/+81 | |
| | | | | | | [#2370 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Setting connection timeout also affects Net::HTTP open_timeout. | Jeremy Kemper | 2009-08-09 | 1 | -7/+19 | |
| | | | | [#2947 state:resolved] | |||||
* | HTTP proxy support | Marshall Huss | 2009-08-08 | 2 | -3/+35 | |
| | | | | | | [#2133 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Ruby 1.9 compat: fix for SSL in Active Resource | Brendan Schwartz | 2009-08-07 | 1 | -1/+1 | |
| | | | | | | [#1272 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Add wrap_with_notifications helper to AMo observing | Joshua Peek | 2009-07-20 | 2 | -10/+13 | |
| | ||||||
* | Add observing hooks to ARes | Joshua Peek | 2009-07-11 | 1 | -2/+9 | |
| | ||||||
* | Bump up the version to 3.0.pre | Carl Lerche | 2009-06-30 | 1 | -3/+3 | |
| | ||||||
* | Move model naming into ActiveModel | Joshua Peek | 2009-06-17 | 1 | -0/+1 | |
| | ||||||
* | Prefer JSON.encode(value) to value.to_json | Jeremy Kemper | 2009-06-08 | 1 | -2/+2 | |
| | ||||||
* | Make use of AS::Concern in ActiveResource | Joshua Peek | 2009-06-08 | 2 | -40/+37 | |
| | ||||||
* | Setup ActiveResource autoloads | Joshua Peek | 2009-06-08 | 5 | -18/+6 | |
| | ||||||
* | JSON: split encoding and coercion | Jeremy Kemper | 2009-06-08 | 1 | -8/+3 | |
| | ||||||
* | Tolerate missing logger | Jeremy Kemper | 2009-05-30 | 1 | -1/+1 | |
| | ||||||
* | Use URI and Inflector | Jeremy Kemper | 2009-05-30 | 1 | -2/+4 | |
| | ||||||
* | Merge branch 'master' into active_model | Joshua Peek | 2009-05-29 | 9 | -67/+107 | |
|\ | | | | | | | | | | | | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb | |||||
| * | Cherry-pick core extensions | Jeremy Kemper | 2009-05-13 | 1 | -1/+3 | |
| | | ||||||
| * | Fix tests on 1.8.6 | Jeremy Kemper | 2009-05-06 | 1 | -0/+1 | |
| | | ||||||
| * | Cherry pick Active Support dependencies. Autoload. | Jeremy Kemper | 2009-05-06 | 8 | -64/+95 | |
| | | ||||||
| * | Remove superfluous CGI require | Jeremy Kemper | 2009-05-05 | 1 | -1/+0 | |
| | | ||||||
| * | Fix differing rails_to_json arity | Jeremy Kemper | 2009-04-26 | 1 | -3/+5 | |
| | | ||||||
| * | * Add pluggable JSON backends with support for the JSON gem. [rick] | rick | 2009-04-23 | 1 | -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 | |||||
| * | Opt in to JSON | Jeremy Kemper | 2009-04-22 | 1 | -0/+2 | |
| | | ||||||
* | | Merge branch 'master' into active_model | Pratik Naik | 2009-04-22 | 2 | -21/+21 | |
|\| | | | | | | | | | Conflicts: activeresource/lib/active_resource/validations.rb | |||||
| * | Merge docrails | Pratik Naik | 2009-03-24 | 3 | -29/+30 | |
| | | ||||||
* | | Deprecate Errors#on_base/add_to_base/invalid?/each_full | Pratik Naik | 2009-03-21 | 1 | -1/+1 | |
| | | ||||||
* | | Fix ActiveResource::Errors deprecation messages | Pratik Naik | 2009-03-20 | 1 | -2/+2 | |
| | | ||||||
* | | Make Active Resource use ActiveModel::Errors | Pratik Naik | 2009-03-19 | 1 | -195/+1 | |
|/ | ||||||
* | Prepare for final 2.3 release | David Heinemeier Hansson | 2009-03-15 | 1 | -1/+1 | |
| | ||||||
* | Prep for RC2 later today | David Heinemeier Hansson | 2009-02-27 | 1 | -1/+1 | |
| | ||||||
* | Handle either error string or array | Jeremy Kemper | 2009-02-06 | 1 | -1/+1 | |
| | ||||||
* | Fix example and exception message | Jeremy Kemper | 2009-02-06 | 1 | -2/+2 | |
| | ||||||
* | Work around mock request hashing problem on 1.9 and jruby | Jeremy Kemper | 2009-02-06 | 1 | -42/+24 | |
| | ||||||
* | Prefer tap to returning | Jeremy Kemper | 2009-02-06 | 1 | -6/+6 | |
| | ||||||
* | Improve exception handling when Location header is invalid. [#1192 ↵ | Bob Aman | 2009-01-28 | 1 | -1/+1 | |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | ActiveResource#eqls? and == should not take into account object identity and ↵ | Rasik Pandey | 2009-01-28 | 1 | -2/+2 | |
| | | | | | | prefix options should be considered. [#1098 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Inline code comments for class_eval/module_eval [#1657 state:resolved] | Xavier Noria | 2008-12-28 | 1 | -0/+8 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Benchmark.ms | Jeremy Kemper | 2008-12-09 | 1 | -2/+2 | |
| | ||||||
* | Merge with docrails | Pratik Naik | 2008-12-07 | 1 | -0/+2 | |
| | ||||||
* | Make new_record? an alias of new? in ActiveResource to fix problem with ↵ | miloops | 2008-12-02 | 1 | -0/+1 | |
| | | | | | | route generation in forms. Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Assume that the next version is going to be 2.3 for now | David Heinemeier Hansson | 2008-11-19 | 1 | -2/+2 | |
| | ||||||
* | Prepare for RC2 | David Heinemeier Hansson | 2008-11-14 | 1 | -1/+1 | |
| | ||||||
* | Fixed that ActiveResource#post would post an empty string when it shouldn't ↵ | David Heinemeier Hansson | 2008-10-30 | 1 | -1/+1 | |
| | | | | be posting anything (Paolo Angelini) [#525 state:committed] | |||||
* | Should be 2.2.0 as well | David Heinemeier Hansson | 2008-10-23 | 1 | -1/+1 | |
| |