aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow ActiveResource to work with non-generated ids [#5660 state:resolved]Jacques Crocker2010-09-251-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 Tagua2010-09-221-4/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Exception handling more readableThiago Pradi2010-09-191-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 Abner2010-09-181-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 Tagua2010-09-171-3/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove all deprecation warnings in activeresourceCarlos Antonio da Silva2010-09-061-10/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-022-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łkowski2010-09-022-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 Lindsaar2010-08-291-2/+38
| | | | stored requests and responses by passing false to respond_to
* Updating documentation on ActiveResource HTTP Mock and also adding test coverageMikel Lindsaar2010-08-291-3/+37
|
* lifecycle should be two words, life cycleJaime Iniesta2010-08-261-4/+4
|
* Make ActiveResource::InvalidRequestError more user friendlyMikel Lindsaar2010-08-251-2/+6
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* fix broken relative links [#5415 state:committed]Joost Baaij2010-08-241-1/+1
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Master is now targeting 3.1.0.betaDavid Heinemeier Hansson2010-08-231-2/+2
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-142-12/+12
| | | | 's/[ \t]*$//' -i {} \;)
* adds missing requires for Object#tryXavier Noria2010-08-091-1/+5
|
* fix loading of different elements in array then int and string [#5036 ↵Josef Reidinger2010-08-021-3/+3
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Prep for RCDavid Heinemeier Hansson2010-07-261-1/+1
|
* fix escaping id and parameters in path [#5137 state:resolved]Josef Reidinger2010-07-261-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Object#returning removedSantiago Pastorino2010-07-251-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 Trasbo2010-06-261-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ça2010-06-241-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é Valim2010-06-244-18/+16
| | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
* Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-151-2/+2
|\
| * Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-2/+2
| |
* | There is no type="array" returned with errors. [#3691:resolved]Ryan Bigg2010-06-121-1/+1
|/
* Get ready for beta 4David Heinemeier Hansson2010-06-081-1/+1
|
* Adding to_key to ActiveResource objects using ActiveModel::Conversion [#4685 ↵Elomar França2010-06-031-5/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-6/+7
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* ActiveResource shouldn't consider modules in the pathSantiago Pastorino2010-05-151-16/+2
| | | | | | [#4529 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Better code formatting and proper line numbers for stack tracesNeeraj Singh2010-05-141-1/+1
| | | | | | [#4596 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fixes to_json and to_xml for ActiveResourceSantiago Pastorino2010-05-121-6/+15
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make ActiveResource serialize XML correctly when element_name is set.Santiago Pastorino2010-05-121-4/+15
| | | | | | [#4529] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-021-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 Pastorino2010-04-261-63/+3
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert "create option to include_root_in_json for ActiveResource [#2584 ↵Jeremy Kemper2010-04-251-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é Valim2010-04-101-1/+1
| | | | internally it's beta2) and update CHANGELOG.
* fix stack trace lines on class_evalSantiago Pastorino2010-04-092-4/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* create option to include_root_in_json for ActiveResource [#2584 state:committed]Santiago Pastorino2010-04-051-0/+9
|
* Prep for beta2, depend on latest BundlerDavid Heinemeier Hansson2010-04-011-1/+1
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-282-0/+3
|
* 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>
* Move application configuration to the application configuration object, ↵José Valim2010-03-261-2/+2
| | | | remove railtie_name and engine_name and allow to set the configuration object.
* Update versions of all components to normalize them to new formatBryan Helmkamp2010-03-021-2/+3
|
* Rename Rails::Subscriber to Rails::LogSubscriberPrem Sichanugrist2010-02-162-3/+3
|
* Fix tiny version number from '3.0.0beta' to '3.0.0.beta1', so 'rake install' ↵Prem Sichanugrist2010-02-061-1/+1
| | | | | | will be run correctly [#3879 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Move to 3.0.0.betaDavid Heinemeier Hansson2010-02-031-1/+1
|
* Use format of ARes rather than content-type of remote errors to load errors.Jatinder Singh2010-01-271-3/+3
| | | | | | [#1956 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Rename plugin_name to railtie_name and engine_name.José Valim2010-01-241-1/+1
|