We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fbd4b2 commit f232f5bCopy full SHA for f232f5b
lib/mongoid/scopable.rb
@@ -249,12 +249,11 @@ def check_scope_name(name)
249
if Mongoid.scope_overwrite_exception
250
raise Errors::ScopeOverwrite.new(self.name, name)
251
else
252
- if Mongoid.logger
253
- Mongoid.logger.warn(
254
- "Creating scope :#{name}. " +
255
- "Overwriting existing method #{self.name}.#{name}."
256
- )
257
- end
+ 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."
+ )
258
end
259
260
0 commit comments