Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Active Resource typos. | R.T. Lechow | 2011-03-05 | 1 | -2/+2 |
| | |||||
* | make the example code a bit more accurate | Akira Matsuda | 2011-01-29 | 1 | -1/+1 |
| | |||||
* | Fix indentation | Akira Matsuda | 2011-01-29 | 1 | -1/+1 |
| | |||||
* | class inheritable attributes is used no more! all internal use of class ↵ | Josh Kalderimis | 2010-11-20 | 1 | -3/+5 |
| | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move uri parser to AS as URI.parser method to reuse it in AP and ARes. | Emilio Tagua | 2010-09-28 | 1 | -10/+7 |
| | |||||
* | 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 | 1 | -0/+6 |
| | | | | | | | 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 | 1 | -5/+5 |
| | | | | | | | | | | 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] | ||||
* | lifecycle should be two words, life cycle | Jaime Iniesta | 2010-08-26 | 1 | -4/+4 |
| | |||||
* | fix broken relative links [#5415 state:committed] | Joost Baaij | 2010-08-24 | 1 | -1/+1 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | 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> | ||||
* | 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> | ||||
* | Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵ | José Valim | 2010-06-24 | 1 | -0/+1 |
| | | | | 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 |
|/ | |||||
* | Adding to_key to ActiveResource objects using ActiveModel::Conversion [#4685 ↵ | Elomar França | 2010-05-26 | 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> | ||||
* | 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> | ||||
* | 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] | ||||
* | fix stack trace lines on class_eval | Santiago Pastorino | 2010-04-09 | 1 | -2/+2 |
| | | | | 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 |
| | |||||
* | adds missing requires for Object#duplicable? | Xavier Noria | 2010-03-28 | 1 | -0/+1 |
| | |||||
* | Makes ActiveResource work with form_for: - Adds a `build' method that can be ↵ | Gaël Deest | 2010-03-27 | 1 | -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 Naik | 2010-01-04 | 1 | -2/+141 |
|\ | |||||
| * | All ARes modules are safe to defer | Joshua Peek | 2009-12-22 | 1 | -0/+3 |
| | | |||||
| * | Use instance_eval for schema block | Joshua Peek | 2009-12-20 | 1 | -9/+9 |
| | | |||||
| * | Rename define_schema => schema | Joshua Peek | 2009-12-20 | 1 | -23/+20 |
| | | |||||
| * | Rename SchemaDefinition => Schema | Joshua Peek | 2009-12-20 | 1 | -8/+7 |
| | | |||||
| * | define_schema for Active Resource | Taryn East | 2009-12-20 | 1 | -2/+142 |
| | | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | | Merge remote branch 'mainstream/master' | Pratik Naik | 2009-11-17 | 1 | -16/+36 |
|\| | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/conversions.rb | ||||
| * | Ruby 1.9.2: URI.parse and .decode are deprecated | Jeremy Kemper | 2009-11-09 | 1 | -4/+8 |
| | | |||||
| * | Remove reliance on string access core extension | Jeremy Kemper | 2009-11-09 | 1 | -12/+15 |
| | | |||||
| * | Consolidate Object#to_param and #to_query core extensions | Jeremy Kemper | 2009-11-02 | 1 | -0/+1 |
| | | |||||
| * | Digest auth option for ActiveResource. | pivotal | 2009-10-15 | 1 | -0/+12 |
| | | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | | Merge commit 'mainstream/master' | Pratik Naik | 2009-10-10 | 1 | -6/+36 |
|\| | |||||
| * | Cleanup whitespace introduced in 8377646 and f4f6888 | Joshua Peek | 2009-10-02 | 1 | -35/+34 |
| | | |||||
| * | add indifferent access to the attributes | Taryn East | 2009-10-02 | 1 | -1/+2 |
| | | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
| * | update_attribute(s) added to Active Resource | Taryn East | 2009-10-02 | 1 | -0/+30 |
| | | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> |