- 30 5月, 2011 1 次提交
-
-
由 Lee Reilly 提交于
-
- 21 5月, 2011 1 次提交
-
-
由 Josh Kalderimis 提交于
-
- 18 5月, 2011 2 次提交
-
-
由 Josh Kalderimis 提交于
-
由 Josh Kalderimis 提交于
-
- 02 5月, 2011 1 次提交
-
-
由 Chris Griego 提交于
* Add performance benchmark similar to ActiveRecord * Lazily find_or_create_resource_for_collection to not incur the overhead for empty arrays and arrays of primatives * #duplicable? is faster than inline rescues when the object is not duplicable * Don't constantly raise and handle NameError, raising is expensive * Even when a resource is nested inside a module, always look inside the class first for the resource definition so we don't overwrite classes all the time Before: user system total real Model.new (instantiation) 0.120000 0.000000 0.120000 ( 0.119961) Nested::Model.new (instantiation) 0.150000 0.010000 0.160000 ( 0.151183) Model.new (setting attributes) 28.540000 0.680000 29.220000 ( 29.271775) Nested::Model.new (setting attributes) 29.740000 0.580000 30.320000 ( 30.486210) After: user system total real Model.new (instantiation) 0.120000 0.000000 0.120000 ( 0.121249) Nested::Model.new (instantiation) 0.150000 0.010000 0.160000 ( 0.152429) Model.new (setting attributes) 11.480000 0.170000 11.650000 ( 11.656163) Nested::Model.new (setting attributes) 11.510000 0.210000 11.720000 ( 11.724249)
-
- 05 3月, 2011 1 次提交
-
-
由 R.T. Lechow 提交于
-
- 04 3月, 2011 1 次提交
-
-
由 R.T. Lechow 提交于
-
- 29 1月, 2011 2 次提交
-
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
- 21 11月, 2010 1 次提交
-
-
由 Josh Kalderimis 提交于
class inheritable attributes is used no more! all internal use of class inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 28 9月, 2010 7 次提交
-
-
由 Emilio Tagua 提交于
-
由 Emilio Tagua 提交于
-
由 Matthijs Langenberg 提交于
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: NJosé Valim <jose.valim@gmail.com>
-
由 Gaston Ramos 提交于
-
由 Gaston Ramos 提交于
-
由 Gaston Ramos 提交于
-
由 Gaston Ramos 提交于
- elmenth_path raise an ActiveResource::MissingPrefixParam exception when 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
-
- 25 9月, 2010 2 次提交
-
-
由 Jacques Crocker 提交于
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: NJosé Valim <jose.valim@gmail.com>
-
由 Jacques Crocker 提交于
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: NJosé Valim <jose.valim@gmail.com>
-
- 23 9月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 20 9月, 2010 1 次提交
-
-
由 Thiago Pradi 提交于
[#5601 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 19 9月, 2010 1 次提交
-
-
由 Mike Abner 提交于
make sure a Content-Length header exists and that the response.body is not 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]
-
- 26 8月, 2010 2 次提交
-
-
由 Jaime Iniesta 提交于
-
由 Jaime Iniesta 提交于
-
- 24 8月, 2010 1 次提交
-
-
由 Joost Baaij 提交于
Signed-off-by: NXavier Noria <fxn@hashref.com>
-
- 02 8月, 2010 1 次提交
-
-
由 Josef Reidinger 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 26 7月, 2010 2 次提交
-
-
由 Josef Reidinger 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 24 6月, 2010 1 次提交
-
-
由 José Valim 提交于
Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
-
- 12 6月, 2010 1 次提交
-
-
由 Ryan Bigg 提交于
-
- 11 6月, 2010 1 次提交
-
-
由 Evgeniy Dolzhenko 提交于
-
- 03 6月, 2010 1 次提交
-
-
由 Elomar França 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 26 5月, 2010 1 次提交
-
-
由 Elomar França 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 20 5月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 15 5月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
[#4529 state:committed] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 13 5月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Santiago Pastorino 提交于
[#4529] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 27 4月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 26 4月, 2010 1 次提交
-
-
由 Jeremy Kemper 提交于
This reverts commits 72f89b5d, 137d8e0b. Should reuse Active Model. [#2584 state:incomplete]
-
- 10 4月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-