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

after_restore_commit undefined for v3.0 #568

Open
noctivityinc opened this issue Oct 24, 2024 · 0 comments
Open

after_restore_commit undefined for v3.0 #568

noctivityinc opened this issue Oct 24, 2024 · 0 comments

Comments

@noctivityinc
Copy link

Any reason why after_restore_commit with v 3.0.0 in a Rails 7.1 app would be undefined?

The very first line of my model is:

class Idea < ActiveRecord::Base
  acts_as_paranoid after_restore_commit: true

and then I have

after_restore_commit :restore_item

But when i refresh I get:

NoMethodError (undefined method `after_restore_commit' for class Idea)
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