Matthew Moore
hack · Not a member
Matthew Moore's latest activity
Thursday, April 30 2009
-
-
Matthew Moore commented at 6:47 PMHere's the applicable code within ActiveResource::Base, which makes it pretty obvious what's going on:
# Returns the serialized string representation of ... -
Matthew Moore created the ticket at 6:40 PMIf you create a new 2.3.2 rails project with an ActiveResource model with format set to JSON, e.g.
class MyModel < ActiveResource::Base self.site = "http:...
Sunday, January 11 2009
-
Matthew Moore commented at 6:16 PMIt seems odd to me that the prefix is stored in a method (by redefining a method when it's set), rather than a variable.
Was there any method to this madness? W...
-
Matthew Moore created the ticket at 6:16 PMIf you need to set the values for ActiveResource.site with a URI that includes a path, ActiveResource::Base.prefix will be wrong.
Consider this example. If you ...
Saturday, January 10 2009
-
Matthew Moore commented at 10:52 PMThis actually only applies to ActiveResource::CustomMethods ActiveResource already uses to_param
Friday, January 09 2009
-
Matthew Moore created the ticket at 9:27 AMIf you compare the two methods in ActiveResrouce::CustomMethods, you see:
def post(method_name, options = {}, body = nil) request_body = bod...
-
Matthew Moore created the ticket at 9:06 AMLet's say you have a resource that uses a permalink to_param, instead of id.
To find this using ActiveResource, you'd usually do something like:
ar = MyActiv...
Monday, December 01 2008
-
Matthew Moore commented at 8:13 PMActually I've been looking into this more, and it might be better instead to
stringify_keys!in theattributes=method like ActiveRecord does. Still thinking ab...
Tuesday, November 25 2008
-
Matthew Moore created the ticket at 8:09 PMIf you look at:
# Grabs errors from the XML response. def from_xml(xml) clear humanized_attributes = @base.attributes.keys.inject({}) { |...