Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 ↵ | Matthijs Langenberg | 2010-09-27 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | state:resolved] Following namespace use case was broken with Ruby 1.9: class Author < ActiveRecord::Base ... end module Api class Book < ActiveResouce::Base end end Let's say XML contains <book><author><name>John</name></author>.... Api::Book.first.author.class.to_s #=> Ruby 1.8.7: "Api::Book::Author" (namespaced, correct), Ruby 1.9: "Author" (toplevel, broken) Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | - check prefix options in collection_path | Gaston Ramos | 2010-09-27 | 1 | -1/+7 |
| | |||||
* | - better name for prefix param test case | Gaston Ramos | 2010-09-27 | 1 | -1/+1 |
| | |||||
* | - elmenth_path raise an ActiveResource::MissingPrefixParam exception when ↵ | Gaston Ramos | 2010-09-27 | 2 | -1/+9 |
| | | | | | | | prefix_options does not has all required prefix_options ex: class StreetAddress < ActiveResource::Base self.site = "http://37s.sunrise.i:3000/people/:person_id/" end StreetAddress.element_path(1) # => ActiveResource::MissingPrefixParam | ||||
* | Fix active_resource assertions. | José Valim | 2010-09-25 | 1 | -2/+2 |
| | |||||
* | Allow per Resource format settings | Jacques Crocker | 2010-09-25 | 1 | -4/+8 |
| | | | | | | | | | | Previously, ActiveResource was using the connection level formatter for get requests. This made it impossible to use custom formatters per resource. Additionally this commit makes the Connection request methods more consistent. It always returns a Response. The base will then decode it each the response using its format setting. Merging this commit will allow users to add custom formatters on a per Resource basis. This enables handling pagination responses from the server side, a very common use case that was previously impossible without monkeypatching XmlFormat. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Allow ActiveResource to work with non-generated ids [#5660 state:resolved] | Jacques Crocker | 2010-09-25 | 2 | -1/+50 |
| | | | | | | This commit updates new? so that it knows whether or not the record was actually new or not, and doesn't rely solely on the presence of id. This enables the ability to set a custom primary_key that is not autogenerated by the server. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | resolves rdoc conflict | Xavier Noria | 2010-09-23 | 1 | -1/+1 |
|\ | |||||
| * | Tiny fixes to rdoc | Alexey Mahotkin | 2010-09-16 | 1 | -1/+1 |
| | | |||||
* | | test for #5038 | Neeraj Singh | 2010-09-18 | 1 | -0/+8 |
| | | |||||
* | | Refactor setup methods by extracting them in abstract_unit, remove TODO. | Emilio Tagua | 2010-09-17 | 3 | -237/+5 |
| | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Remove TODO and support all expected attributes. | Emilio Tagua | 2010-09-17 | 1 | -10/+46 |
|/ | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove all deprecation warnings in activeresource | Carlos Antonio da Silva | 2010-09-06 | 1 | -8/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | ActiveModel#to_xml fix (renamed parameter). | Andreas Garnæs | 2010-09-02 | 1 | -0/+6 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Adding option to ActiveResource to allow you to not reset the previously ↵ | Mikel Lindsaar | 2010-08-29 | 1 | -1/+41 |
| | | | | stored requests and responses by passing false to respond_to | ||||
* | Updating documentation on ActiveResource HTTP Mock and also adding test coverage | Mikel Lindsaar | 2010-08-29 | 1 | -0/+28 |
| | |||||
* | Make ActiveResource::InvalidRequestError more user friendly | Mikel Lindsaar | 2010-08-25 | 1 | -0/+11 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 2 | -6/+6 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | fix loading of different elements in array then int and string [#5036 ↵ | Josef Reidinger | 2010-08-02 | 1 | -0/+12 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | fix escaping id and parameters in path [#5137 state:resolved] | Josef Reidinger | 2010-07-26 | 1 | -0/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | These tests are trusting in the order of the elements so use OrderedHash ↵ | Santiago Pastorino | 2010-07-21 | 1 | -1/+2 |
| | | | | instead of Hash | ||||
* | Make sure ActiveResource::Errors#from_json doesn't pass nil to #from_array ↵ | David Trasbo | 2010-06-26 | 1 | -1/+12 |
| | | | | | | [#3650 state:commited] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix bug where ActiveResource::HttpMock would overwrite Accept/Content-Type ↵ | Elomar França | 2010-06-24 | 1 | -0/+71 |
| | | | | | | header to application/xml [#4939 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵ | José Valim | 2010-06-24 | 1 | -5/+4 |
| | | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved] | ||||
* | edit pass: the names of Rails components have a space, ie, "Active Record", ↵ | Xavier Noria | 2010-06-14 | 2 | -2/+2 |
| | | | | not "ActiveRecord" | ||||
* | Adding to_key to ActiveResource objects using ActiveModel::Conversion [#4685 ↵ | Elomar França | 2010-05-26 | 1 | -0/+7 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Replace assert with assert_equal in some test cases | Neeraj Singh | 2010-05-21 | 1 | -3/+3 |
| | | | | | | [#4654 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 2 | -11/+11 |
| | | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | assert should be replaced with assert_equal in a particular test case | Neeraj Singh | 2010-05-18 | 1 | -1/+1 |
| | | | | | | [#4636 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | ActiveResource shouldn't consider modules in the path | Santiago Pastorino | 2010-05-15 | 1 | -0/+5 |
| | | | | | | [#4529 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make ActiveResource serialize XML correctly when element_name is set. | Santiago Pastorino | 2010-05-12 | 1 | -0/+36 |
| | | | | | | [#4529] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Make use of to_xml and to_json in tests | Santiago Pastorino | 2010-05-12 | 1 | -2/+7 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Reuse Active Model serialization in Active Resource. [#2584 state:committed] | Santiago Pastorino | 2010-04-26 | 1 | -6/+22 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Revert "create option to include_root_in_json for ActiveResource [#2584 ↵ | Jeremy Kemper | 2010-04-25 | 1 | -23/+6 |
| | | | | | | | | | | state:committed]" This reverts commits 72f89b5d971b48a133c4c0af56fbeda35d738dae, 137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972. Should reuse Active Model. [#2584 state:incomplete] | ||||
* | Make this test pass on > 1.9 | Santiago Pastorino | 2010-04-19 | 1 | -1/+5 |
| | |||||
* | create option to include_root_in_json for ActiveResource [#2584 state:committed] | Santiago Pastorino | 2010-04-05 | 1 | -6/+19 |
| | |||||
* | Fix active_resource tests | Carl Lerche | 2010-03-02 | 1 | -2/+3 |
| | |||||
* | no more warning ambiguous first argument; put parentheses or even spaces on ↵ | Santiago Pastorino | 2010-02-26 | 1 | -2/+2 |
| | | | | log_subscriber_test | ||||
* | Revert "Fix test load paths for those not using bundler" | Carlhuda | 2010-02-23 | 1 | -4/+1 |
| | | | | | | This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818. This commit broke tests. You cannot have a file called "bundler" on the load path. | ||||
* | Merge master. | José Valim | 2010-02-17 | 1 | -1/+5 |
|\ | |||||
| * | Fix test load paths for those not using bundler | Joshua Peek | 2010-02-15 | 1 | -1/+5 |
| | | |||||
* | | Rename Rails::Subscriber to Rails::LogSubscriber | Prem Sichanugrist | 2010-02-16 | 1 | -5/+5 |
|/ | |||||
* | Fix failing spec | Yehuda Katz | 2010-02-08 | 2 | -1/+7 |
| | |||||
* | method_missing errors on activeresource tests, mocha is not required there | Santiago Pastorino | 2010-02-05 | 1 | -0/+1 |
| | | | | | | [#3825 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Use format of ARes rather than content-type of remote errors to load errors. | Jatinder Singh | 2010-01-27 | 1 | -0/+13 |
| | | | | | | [#1956 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Default to sync instrumentation. | José Valim | 2010-01-21 | 1 | -11/+2 |
| | |||||
* | save(false) is gone, use save(:validate => false) instead. | José Valim | 2010-01-17 | 1 | -0/+13 |
| | |||||
* | Add notifications to ActiveResource. | José Valim | 2010-01-14 | 1 | -0/+39 |
| | |||||
* | Fix new schema test dependency on Hash#to_xml | Jeremy Kemper | 2009-12-23 | 1 | -0/+1 |
| | |||||
* | Use instance_eval for schema block | Joshua Peek | 2009-12-20 | 1 | -46/+56 |
| |