Skip to content

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

Closed
@aar0nr

Description

@aar0nr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions