class RuboCop::Cop::Betterment::UseGlobalStrictLoading::ForAssociations
This cop ensures that ‘strict_loading: <any value>` is not set in ActiveRecord associations.
def on_send(node)
def on_send(node) association_with_strict_loading?(node) do |pair| add_offense(node) do |corrector| corrector.remove(range_with_surrounding_comma(range_with_surrounding_space(range: pair.source_range, side: :left), :left)) end end end