Skip to content

Commit

Permalink
Should be an or on the scope warn. #1373.
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Oct 23, 2011
1 parent 184376b commit f866bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid/named_scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def with_scope(criteria)
#
# @param [ String, Symbol ] name The name of the scope.
def valid_scope_name?(name)
if scopes[name] && respond_to?(name, true)
if scopes[name] || respond_to?(name, true)
if Mongoid.logger
Mongoid.logger.warn(
"Creating scope :#{name}. " +
Expand Down

0 comments on commit f866bd3

Please sign in to comment.