Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant