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 7.2: DEPRECATION WARNING: Caffeinate::CampaignSubscription model aliases caffeinate_campaign, but caffeinate_campaign is not an attribute. #43

Open
maxwell opened this issue Dec 5, 2023 · 0 comments · May be fixed by #45

Comments

@maxwell
Copy link

maxwell commented Dec 5, 2023

Starting in Rails 7.2, alias_attribute with non-attribute targets will raise. Use alias_method :campaign, :caffeinate_campaign or define the method manually.

backtrace sources this error from the following lines

  /Users/maxwell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/caffeinate-2.5.0/app/models/caffeinate/campaign.rb:86:in `subscribe!'
  /Users/maxwell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/caffeinate-2.5.0/lib/caffeinate/dripper/subscriber.rb:27:in `subscribe'
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

Successfully merging a pull request may close this issue.

1 participant