mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
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
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ class Factory
|
|||
|
||||
def class_for (class_or_to_s)
|
||||
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
|
||||
class_or_to_s
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue