mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
mark relation mutator as :nodoc: [ci skip]
This commit is contained in:
parent
4b8ea379f1
commit
919c86d2d5
1 changed files with 1 additions and 2 deletions
|
@ -34,7 +34,6 @@ module ActiveRecord
|
||||||
#
|
#
|
||||||
# User.where.not(name: "Jon", role: "admin")
|
# User.where.not(name: "Jon", role: "admin")
|
||||||
# # SELECT * FROM users WHERE name != 'Jon' AND role != 'admin'
|
# # SELECT * FROM users WHERE name != 'Jon' AND role != 'admin'
|
||||||
#
|
|
||||||
def not(opts, *rest)
|
def not(opts, *rest)
|
||||||
where_value = @scope.send(:build_where, opts, rest).map do |rel|
|
where_value = @scope.send(:build_where, opts, rest).map do |rel|
|
||||||
case rel
|
case rel
|
||||||
|
@ -353,7 +352,7 @@ module ActiveRecord
|
||||||
spawn.unscope!(*args)
|
spawn.unscope!(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
def unscope!(*args)
|
def unscope!(*args) # :nodoc:
|
||||||
args.flatten!
|
args.flatten!
|
||||||
|
|
||||||
args.each do |scope|
|
args.each do |scope|
|
||||||
|
|
Loading…
Reference in a new issue