Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improve #module_namespace and get tests passing

  • Loading branch information...
commit 0cf0b75fc61da0ea3f7b5c04b305ea1604628af4 1 parent 4acd199
@csquared csquared authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/databasedotcom/client.rb
View
4 lib/databasedotcom/client.rb
@@ -354,7 +354,9 @@ def find_or_materialize(class_or_classname)
end
def module_namespace
- (self.sobject_module && self.sobject_module.constantize) || Object
+ _module = self.sobject_module
+ _module = _module.constantize if _module.is_a? String
+ _module || Object
end
def collection_from(response)
Please sign in to comment.
Something went wrong with that request. Please try again.