In ActiveResource#load we see:

attributes.each do |key, value|
  @attributes[key.to_s] =
  case value
    when Array

To test whether to do recursive resource loading of the attribute.

I am seeing some situations where this construct thinks that an
attribute which is a long string as matches the case Array#===  and it
ends up trying to instantiate a attribute that isn't an object.
Changing the case to check value.class, i.e:

  case value.class

fixes the problem. Anybody have any insight into what's going on here?

-Eric


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to