Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model name bug if the name is end of s #121

Open
fifiteen82726 opened this issue Feb 14, 2017 · 1 comment
Open

Model name bug if the name is end of s #121

fifiteen82726 opened this issue Feb 14, 2017 · 1 comment

Comments

@fifiteen82726
Copy link

fifiteen82726 commented Feb 14, 2017

I have a model call Boss.

When I execute this command rake db:seed:dump MODELS=Boss APPEND=true, it threw

NameError: uninitialized constant Bos

I need to execute by using rake db:seed:dump MODELS=Bosss APPEND=true, that is I must to put the extra s to fit it.

@kofronpi
Copy link
Collaborator

kofronpi commented May 4, 2017

@fifiteen82726 In your rails app console, what does "Boss".x.strip.underscore.singularize.camelize.constantize returns ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants