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

With Rails 7, is it working? #28

Closed
jean202222222 opened this issue Jan 12, 2023 · 2 comments
Closed

With Rails 7, is it working? #28

jean202222222 opened this issue Jan 12, 2023 · 2 comments

Comments

@jean202222222
Copy link

Hi
With Rails 7, i install gem protected_attributes_continued (1.8.2)
When i run a rake task, i have the message:
NoMethodError: undefined method `attr_protected' for Autocall:Class
First, what can i check about installation?

@westonganger
Copy link
Owner

Test suite with Rails 7 was passing 3 weeks ago.

Some things to check:

  • Does it work outside of Rake tasks?
  • Are you running your rake task with bundle exec
  • Did you add gem to Gemfile and bundle install (dont use gem install)
  • Do you have any special require flows that might be missing this? Maybe try creating an initializer with require 'protected_attributes_continued' inside it

@jean202222222
Copy link
Author

jean202222222 commented Jan 13, 2023

I add gem to Gemfile and bundle install and now with bundle exec or without, it's ok. I continue my tests. Thank you very much

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

2 participants