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

Rails 6 support? #504

Closed
whitewolf92 opened this issue Dec 14, 2020 · 2 comments
Closed

Rails 6 support? #504

whitewolf92 opened this issue Dec 14, 2020 · 2 comments

Comments

@whitewolf92
Copy link

whitewolf92 commented Dec 14, 2020

Hi,

Will there be support for Rails 6? I keep getting the following error, maybe some methods inside paranoia is deprecated?

/Users/cedricloy/.rvm/gems/ruby-2.7.2/gems/activerecord-6.1.0/lib/active_record/scoping/default.rb:92:in 'default_scope': Support for calling #default_scope without a block is removed. For example instead of 'default_scope where(color: 'red')', please use 'default_scope { where(color: 'red') }'. (Alternatively you can just redefine self.default_scope.) (ArgumentError) from /Users/test/.rvm/gems/ruby-2.7.2/gems/paranoia-1.2.0/lib/paranoia.rb:49:inacts_as_paranoid'
`

@sevenseacat
Copy link
Member

Do you get the same error after upgrading to 2.4.3?

@whitewolf92
Copy link
Author

Nice, the problem is gone when I upgraded to 2.4.3. Thanks a lot!!

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