Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Rails 6.1 fix #40

Merged
merged 2 commits into from Jun 14, 2021
Merged

Rails 6.1 fix #40

merged 2 commits into from Jun 14, 2021

Conversation

rsamoilov
Copy link
Collaborator

Module#parent_name has been removed in Rails 6.1. The method is now called module_parent_name.

Instead of calling different methods based on Rails version it makes sense to use deconstantize, which was there from at least Rails 3.

@ricardo-quinones
Copy link

Just saw this guy too FYI.

@ricardo-quinones
Copy link

@rsamoilov, why not just add an appraisal for that version of Rails?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 99.732% when pulling 4460f2a on rails-6-1-fix into 2026373 on main.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants