class method
self.construct_finder_arel
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.1.12 PrivateAvailable in: v3.0.20 v3.1.12
Signature
self.construct_finder_arel(options = {}, scope = nil)
No documentation comment.
Parameters
-
optionsopt = {} -
scopeopt = nil
Source
# File activerecord/lib/active_record/base.rb, line 1012
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/base.rb line 1012
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base