class method
self.new
Ruby on Rails 6.0.6
Since v4.0.13 Last seen in v6.1.7.10Signature
self.new(scope)
No documentation comment.
Parameters
-
scopereq
Source
# File activerecord/lib/active_record/relation/query_methods.rb, line 20
def initialize(scope)
@scope = scope
end
Defined in activerecord/lib/active_record/relation/query_methods.rb line 20
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::QueryMethods::WhereChain