public
Fork of chuyeow/activecouch
Description: ActiveCouch is a simple, convenient, Ruby-idiomatic wrapper for CouchDB
Homepage: http://github.com/arunthampi/activecouch
Clone URL: git://github.com/arunthampi/activecouch.git
Can't inflect symbols, has to be a string
arunthampi (author)
Sat Jun 07 16:58:37 -0700 2008
commit  f726da01feb7ffbae4bec6ab327546de3eb47d14
tree    23e728f0ffa7e823793950030fa4dc97268c5403
parent  903038c25f5b79b35ac815e125986bce0692ec15
...
463
464
465
466
 
467
468
469
...
463
464
465
 
466
467
468
469
0
@@ -463,7 +463,7 @@ module ActiveCouch
0
         # Generate a class from a name
0
         def get_klass(name, options)
0
           klass = options[:class]
0
- !klass.nil? && klass.is_a?(Class) ? klass : name.classify.constantize
0
+ !klass.nil? && klass.is_a?(Class) ? klass : name.to_s.classify.constantize
0
         end
0
       
0
         # Returns the class descending directly from ActiveCouch in the inheritance hierarchy.

Comments

    No one has commented yet.