changed class_or_to_s.to_s.classify.constantize to class_or_to_s.to_s.pluralize.classify.constantize; it was causing Inflection errors for me

This commit is contained in:
Alex Sharp 2008-10-20 03:20:32 -05:00 committed by Joe Ferris
parent be5e07dfb6
commit 5c52889a63
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class Factory
def class_for (class_or_to_s) def class_for (class_or_to_s)
if class_or_to_s.respond_to?(:to_sym) if class_or_to_s.respond_to?(:to_sym)
class_or_to_s.to_s.classify.constantize class_or_to_s.to_s.pluralize.classify.constantize
else else
class_or_to_s class_or_to_s
end end