rails/activerecord/test/cases/scoping
Gareth Adams f705c39fa4 Remove redundant parent method from RESTRICTED_CLASS_METHODS
Previously, `parent` was added as one of the RESTRICTED_CLASS_METHODS as
part of a commit (94b7328b08) in 2014 that stopped Rails `enum`s from being
able to redefine important class methods.

At the time, Rails monkey-patched `Module` with a `parent` class method
that returned a module's containing module if it was nested.

However, in October 2020 (167b4153ca) in Rails 6.1, this method was
deprecated in favour of a renamed method `module_parent`. As such, the
`parent` method doesn't need to be a restricted class method any more.
2024-01-09 16:07:39 +00:00
..
default_scoping_test.rb Expose assert_queries_match and assert_no_queries_match assertions 2023-12-21 01:30:16 +02:00
named_scoping_test.rb Remove redundant parent method from RESTRICTED_CLASS_METHODS 2024-01-09 16:07:39 +00:00
relation_scoping_test.rb Expose assert_queries_match and assert_no_queries_match assertions 2023-12-21 01:30:16 +02:00