Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mark relation mutator as :nodoc: [ci skip]

  • Loading branch information...
commit 919c86d2d5e7b74b96305c0bfb0482bbe61d99f2 1 parent 4b8ea37
@frodsan frodsan authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  activerecord/lib/active_record/relation/query_methods.rb
View
3  activerecord/lib/active_record/relation/query_methods.rb
@@ -34,7 +34,6 @@ def initialize(scope)
#
# User.where.not(name: "Jon", role: "admin")
# # SELECT * FROM users WHERE name != 'Jon' AND role != 'admin'
- #
def not(opts, *rest)
where_value = @scope.send(:build_where, opts, rest).map do |rel|
case rel
@@ -353,7 +352,7 @@ def unscope(*args)
spawn.unscope!(*args)
end
- def unscope!(*args)
+ def unscope!(*args) # :nodoc:
args.flatten!
args.each do |scope|
Please sign in to comment.
Something went wrong with that request. Please try again.