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

Module#parent is deprecated in Rails 6 and will be removed in Rails 6.1 #346

Closed
aar0nr opened this issue Apr 30, 2019 · 0 comments · Fixed by #354
Closed

Module#parent is deprecated in Rails 6 and will be removed in Rails 6.1 #346

aar0nr opened this issue Apr 30, 2019 · 0 comments · Fixed by #354

Comments

@aar0nr
Copy link

aar0nr commented Apr 30, 2019

Module#parent is deprecated and has been renamed to Module#module_parent in Rails 6.

https://github.com/rails/rails/blob/v6.0.0.rc1/activesupport/lib/active_support/core_ext/module/introspection.rb#L46

def parent
  ActiveSupport::Deprecation.warn(<<-MSG.squish)
    `Module#parent` has been renamed to `module_parent`.
    `parent` is deprecated and will be removed in Rails 6.1.
  MSG
  module_parent
end

Used here:

https://github.com/ClosureTree/closure_tree/blob/master/lib/closure_tree/support.rb#L35

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