Commit 4e1eb71b authored by Sean McGivern's avatar Sean McGivern

Merge branch 'deprecation-warning-module-parents' into 'master'

Remove deprecation warning for Module#parents

See merge request gitlab-org/gitlab!26365
parents c30132ac 26cbb75e
......@@ -12,7 +12,7 @@ module CustomModelNaming
class_methods do
def model_name
@_model_name ||= begin
namespace = self.parents.detect do |n|
namespace = self.module_parents.detect do |n|
n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
end
Name.new(self, namespace)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment