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

Issue with only_allow_seeded_records #106

Open
crawfoal opened this issue Oct 21, 2016 · 1 comment
Open

Issue with only_allow_seeded_records #106

crawfoal opened this issue Oct 21, 2016 · 1 comment

Comments

@crawfoal
Copy link
Owner

I think there is something wrong with the class reloading in the development environment, because if the server is running and then changes are made, sometimes I see this error:

undefined local variable or method `only_allow_seeded_records' for #<Class:0x007fab29fae020>

This is coming from the Role class, and it seems to be a new issue since upgrading to Rails 5 and making corresponding changes in the application code.

@crawfoal
Copy link
Owner Author

I think moving the include statement to the application_record.rb file itself (rather than the Seedster initializer) might correct this.

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

No branches or pull requests

1 participant