Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | - update documentation | Gaston Ramos | 2010-10-07 | 1 | -0/+9 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | - Fix ActiveResource::HttpMock.respond_to replace the response | Gaston Ramos | 2010-10-07 | 1 | -19/+28 |
| | | | | | | if it has the same request Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | PERF: more changes from inject({}) to Hash + map | Santiago Pastorino | 2010-10-03 | 1 | -1/+1 |
| | |||||
* | Move uri parser to AS as URI.parser method to reuse it in AP and ARes. | Emilio Tagua | 2010-09-28 | 2 | -15/+12 |
| | |||||
* | Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 ↵ | Matthijs Langenberg | 2010-09-27 | 1 | -4/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | - update exceptions documentation | Gaston Ramos | 2010-09-27 | 1 | -0/+11 |
| | |||||
* | - check prefix options in collection_path | Gaston Ramos | 2010-09-27 | 1 | -0/+1 |
| | |||||
* | - refactoring, move prefix_options check to a custom method | Gaston Ramos | 2010-09-27 | 1 | -5/+9 |
| | |||||
* | - elmenth_path raise an ActiveResource::MissingPrefixParam exception when ↵ | Gaston Ramos | 2010-09-27 | 2 | -0/+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 | ||||
* | Allow per Resource format settings | Jacques Crocker | 2010-09-25 | 3 | -8/+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 | 1 | -4/+6 |
| | | | | | | 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> | ||||
* | No need to use inject here. | Emilio Tagua | 2010-09-22 | 1 | -4/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Exception handling more readable | Thiago Pradi | 2010-09-19 | 1 | -2/+2 |
| | | | | | | [#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | make sure a Content-Length header exists and that the response.body is not ↵ | Mike Abner | 2010-09-18 | 1 | -1/+1 |
| | | | | nil before trying to call methods on it. Rack does not allow HTTP 204 responses to have a content-length header set. [#5038 state:resolved] | ||||
* | Remove TODO and support all expected attributes. | Emilio Tagua | 2010-09-17 | 1 | -3/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove all deprecation warnings in activeresource | Carlos Antonio da Silva | 2010-09-06 | 1 | -10/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revert "Setup explicit requires for files with exceptions. Removed them from ↵ | José Valim | 2010-09-02 | 2 | -4/+1 |
| | | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6. | ||||
* | Setup explicit requires for files with exceptions. Removed them from ↵ | Łukasz Strzałkowski | 2010-09-02 | 2 | -1/+4 |
| | | | | | | autoloading. 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 | -2/+38 |
| | | | | 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 | -3/+37 |
| | |||||
* | lifecycle should be two words, life cycle | Jaime Iniesta | 2010-08-26 | 1 | -4/+4 |
| | |||||
* | Make ActiveResource::InvalidRequestError more user friendly | Mikel Lindsaar | 2010-08-25 | 1 | -2/+6 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | fix broken relative links [#5415 state:committed] | Joost Baaij | 2010-08-24 | 1 | -1/+1 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Master is now targeting 3.1.0.beta | David Heinemeier Hansson | 2010-08-23 | 1 | -2/+2 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 2 | -12/+12 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | adds missing requires for Object#try | Xavier Noria | 2010-08-09 | 1 | -1/+5 |
| | |||||
* | fix loading of different elements in array then int and string [#5036 ↵ | Josef Reidinger | 2010-08-02 | 1 | -3/+3 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Prep for RC | David Heinemeier Hansson | 2010-07-26 | 1 | -1/+1 |
| | |||||
* | fix escaping id and parameters in path [#5137 state:resolved] | Josef Reidinger | 2010-07-26 | 1 | -2/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Object#returning removed | Santiago Pastorino | 2010-07-25 | 1 | -1/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make sure ActiveResource::Errors#from_json doesn't pass nil to #from_array ↵ | David Trasbo | 2010-06-26 | 1 | -1/+1 |
| | | | | | | [#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 | -2/+14 |
| | | | | | | 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 | 4 | -18/+16 |
| | | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved] | ||||
* | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-15 | 1 | -2/+2 |
|\ | |||||
| * | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -2/+2 |
| | | |||||
* | | There is no type="array" returned with errors. [#3691:resolved] | Ryan Bigg | 2010-06-12 | 1 | -1/+1 |
|/ | |||||
* | Get ready for beta 4 | David Heinemeier Hansson | 2010-06-08 | 1 | -1/+1 |
| | |||||
* | Adding to_key to ActiveResource objects using ActiveModel::Conversion [#4685 ↵ | Elomar França | 2010-06-03 | 1 | -5/+1 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | refactor evals and adds some __FILE__ and __LINE__ | Santiago Pastorino | 2010-05-20 | 1 | -6/+7 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | ActiveResource shouldn't consider modules in the path | Santiago Pastorino | 2010-05-15 | 1 | -16/+2 |
| | | | | | | [#4529 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Better code formatting and proper line numbers for stack traces | Neeraj Singh | 2010-05-14 | 1 | -1/+1 |
| | | | | | | [#4596 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fixes to_json and to_xml for ActiveResource | Santiago Pastorino | 2010-05-12 | 1 | -6/+15 |
| | | | | 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 | -4/+15 |
| | | | | | | [#4529] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Change event namespace ordering to most-significant first [#4504 state:resolved] | Justin George | 2010-05-02 | 1 | -1/+1 |
| | | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Reuse Active Model serialization in Active Resource. [#2584 state:committed] | Santiago Pastorino | 2010-04-26 | 1 | -63/+3 |
| | | | | 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 | -9/+0 |
| | | | | | | | | | | state:committed]" This reverts commits 72f89b5d971b48a133c4c0af56fbeda35d738dae, 137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972. Should reuse Active Model. [#2584 state:incomplete] | ||||
* | Update versions (otherwise you install a gem from source as beta3 but ↵ | José Valim | 2010-04-10 | 1 | -1/+1 |
| | | | | internally it's beta2) and update CHANGELOG. | ||||
* | fix stack trace lines on class_eval | Santiago Pastorino | 2010-04-09 | 2 | -4/+4 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | create option to include_root_in_json for ActiveResource [#2584 state:committed] | Santiago Pastorino | 2010-04-05 | 1 | -0/+9 |
| | |||||
* | Prep for beta2, depend on latest Bundler | David Heinemeier Hansson | 2010-04-01 | 1 | -1/+1 |
| |