Skip to content

Commit 58e2a3d

Browse files
authored
MONGOID-4698 Correct warning to point out that klass.band doesnt conflict (#5450)
1 parent bb1dedf commit 58e2a3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/mongoid/scopable.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,9 @@ def check_scope_name(name)
251251
else
252252
Mongoid.logger.warn(
253253
"Creating scope :#{name} which conflicts with #{self.name}.#{name}. " +
254-
"Calls to `#{name}' will delegate to #{self.name}.#{name} and " +
255-
"will ignore the declared scope."
254+
"Calls to `Mongoid::Criteria##{name}` will delegate to " +
255+
"`Mongoid::Criteria##{name}` for criteria with klass #{self.name} " +
256+
"and will ignore the declared scope."
256257
)
257258
end
258259
end

0 commit comments

Comments
 (0)