method
construct_finder_arel
v3.0.0 -
Show latest stable
- Class:
ActiveRecord::Base
construct_finder_arel(options = {}, scope = nil)private
No documentation available.
# File activerecord/lib/active_record/base.rb, line 941
def construct_finder_arel(options = {}, scope = nil)
relation = options.is_a?(Hash) ? unscoped.apply_finder_options(options) : unscoped.merge(options)
relation = scope.merge(relation) if scope
relation
end