class RuboCop::Cop::Performance::ChainArrayAllocation
def enumerable_select_method?(node)
def enumerable_select_method?(node) # NOTE: `QueryMethods#select` in Rails accepts positional arguments, whereas `Enumerable#select` does not. # This difference can be utilized to reduce the knowledge requirements related to `select`. (node.block_type? || node.numblock_type?) && node.send_node.arguments.empty? end