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.1 Compatibility #365

Merged
merged 7 commits into from Feb 16, 2021
Merged

Rails 6.1 Compatibility #365

merged 7 commits into from Feb 16, 2021

Conversation

ghost
Copy link

@ghost ghost commented Jan 11, 2021

I'll be completely honest, this fix works, but I haven't spent the time to guarantee this is the "right" way to update this library for Rails 6.1 compatibility. Due to the way the tests fiddle with the innards of ActiveRecord, it seems like this library is only a few more major Rails releases away from needing its tests rewritten.

I saw the comments on #345 by @gee-forr and several others, hopefully I'll be able to get the tests in travis happy if/when they fail.

agrobbin and others added 6 commits September 22, 2019 21:57
…dule#module_parent`

Rails 6 deprecated `Module#parent` and friends in rails/rails#34051, replacing them with a `module_*`-prefix naming scheme. This checks to see if `module_parent` is defined, using it if it's available.
@ghost
Copy link
Author

ghost commented Jan 14, 2021

@kerrizor I think this is ready for review now :)

@katelovescode
Copy link

Would love to have this merged! I've got the fork's master branch pointed to in my Gemfile, thanks for this fix @andrew-newell !

@homonecloco
Copy link

homonecloco commented Feb 6, 2021

I also would love to have this merged and released! I just discovered the library, and patched my local installation. This should fix #363

Copy link

@dmuneras dmuneras left a comment

Choose a reason for hiding this comment

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

Wondering why I can approve this PR 😅 , but I will give it a try.

@ghost
Copy link
Author

ghost commented Feb 9, 2021

Wondering why I can approve this PR 😅 , but I will give it a try.

I like your efforts, unfortunately I don't think you or I have the permissions to merge lol

@dmuneras
Copy link

dmuneras commented Feb 9, 2021

Wondering why I can approve this PR 😅 , but I will give it a try.

I like your efforts, unfortunately I don't think you or I have the permissions to merge lol

Just trying to get some attention from people that can 😂

@homonecloco
Copy link

Wondering why I can approve this PR 😅 , but I will give it a try.

I like your efforts, unfortunately I don't think you or I have the permissions to merge lol

Just trying to get some attention from people that can 😂

Same reason why I commented!

@tinacious
Copy link

I'm on 6.1.0 and can confirm that this fixes the error. Thank you.

@0bserver07
Copy link

Ah thanks for the PR, a quick hack here until someone responds:


mkdir lib/rails_erd/

touch lib/rails_erd/domain.rb

copy the commit content from this file here to below file:

ib/rails_erd/domain.rb

@katelovescode
Copy link

🤖 💡 Just wanting to keep this bumped because I don't want to see it get auto-closed or anything!

@kerrizor
Copy link
Collaborator

@andrew-newell Looks good! I'm honestly surprised the tests continue to pass for 4.2, but it's probably time to EOL support for that. CI comes back 🍏 I'll merge and push a new point release out.. Thank you for the contribution! 🏆

@kerrizor kerrizor merged commit 5bf9f82 into voormedia:master Feb 16, 2021
@kerrizor
Copy link
Collaborator

v1.6.1 pushed to Ruby Gems and should be available. Any issues, please open a new issue!

@lulalala lulalala mentioned this pull request Mar 26, 2021
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.

7 participants