Skip to content

Commit

Permalink
MONGOID-4698 Correct warning to point out that klass.band doesnt conf…
Browse files Browse the repository at this point in the history
…lict (#5450)
  • Loading branch information
Neilshweky committed Aug 29, 2022
1 parent f02eebe commit c7af037
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/mongoid/scopable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ def check_scope_name(name)
else
Mongoid.logger.warn(
"Creating scope :#{name} which conflicts with #{self.name}.#{name}. " +
"Calls to `#{name}' will delegate to #{self.name}.#{name} and " +
"will ignore the declared scope."
"Calls to `Mongoid::Criteria##{name}` will delegate to " +
"`Mongoid::Criteria##{name}` for criteria with klass #{self.name} " +
"and will ignore the declared scope."
)
end
end
Expand Down

0 comments on commit c7af037

Please sign in to comment.