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

Remove ActiveSupport::Concern#prepended usage for Rails 6 #662

Merged
merged 4 commits into from
May 25, 2023

Conversation

marcoroth
Copy link
Member

@marcoroth marcoroth commented May 25, 2023

Type of PR

Bug Fix

Description

ActiveSupport::Concern#prepended is only available in Rails 6.1+. Since we support >= 5.2 we can't rely on the prepended callback in lib/stimulus_reflex/cable_readiness.rb

Fixes #656

Why should this be added

Since we can easily support Rails 5.2 and Rails 6.0 with this fix. Otherwise we would need to make StimulusReflex depend on Rails 6.1+, which seems rather dramatic.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing

@netlify
Copy link

netlify bot commented May 25, 2023

Deploy Preview for stimulusreflex ready!

Name Link
🔨 Latest commit 6c65f2c
🔍 Latest deploy log https://app.netlify.com/sites/stimulusreflex/deploys/646fcaf5caf4c300084238a0
😎 Deploy Preview https://deploy-preview-662--stimulusreflex.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@marcoroth marcoroth requested a review from julianrubisch May 25, 2023 20:54
Copy link
Contributor

@julianrubisch julianrubisch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks safe to me

@marcoroth marcoroth merged commit b079be2 into main May 25, 2023
@marcoroth marcoroth deleted the support-rails-5-2-again branch May 25, 2023 22:33
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 this pull request may close these issues.

ArgumentError after upgrade stimulus_reflex and cable_ready
2 participants