Skip to content

Compatibility with both rails 5 and 6 #4

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

Merged
merged 4 commits into from
Jul 26, 2022

Conversation

jamiemccarthy
Copy link

@jamiemccarthy jamiemccarthy commented Jul 26, 2022

See first #3.

This PR updates #call to work under either rails 5 or 6. See #2 for why rails 6 needs the new argument.

I did this by explicitly testing Rails.version just because we know that is what makes one work and one not. Other opinions are valid, e.g. HAML::Plugin fixed it by testing for source.nil?. I care 2/10.

After approval, this PR should be merged into master, and the result tagged v4.2.1.

We should then delete the v4.2.0 tag, which incorrectly claims it is rails 5 compatible which it is not.

sbn's rails 6 branches should then be updated to bump this gem's version from 4.1.5 to 4.2.1.

@jamiemccarthy jamiemccarthy changed the title Jm call source optional Compatibility with both rails 5 and 6 Jul 26, 2022
@jamiemccarthy jamiemccarthy merged commit a679ef3 into master Jul 26, 2022
@jamiemccarthy jamiemccarthy deleted the jm-call-source-optional branch July 26, 2022 17:02
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.

3 participants