instance method
construct_finder_arel
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v3.2.22.5 PrivateSignature
construct_finder_arel(options = {}, scope = nil)
No documentation comment.
Parameters
-
optionsopt = {} -
scopeopt = nil
Source
# File activerecord/lib/active_record/scoping.rb, line 135
def construct_finder_arel(options = {}, scope = nil)
relation = options.is_a?(Hash) ? unscoped.apply_finder_options(options) : options
relation = scope.merge(relation) if scope
relation
end
Defined in activerecord/lib/active_record/scoping.rb line 135
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Scoping::ClassMethods