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:
parent
be5e07dfb6
commit
5c52889a63
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue