class RuboCop::Cop::Rails::ReadWriteAttribute
def multi_line_message(node)
def multi_line_message(node) if node.method?(:read_attribute) format(MSG, prefer: 'self[:attr]') else format(MSG, prefer: 'self[:attr] = val') end end
def multi_line_message(node) if node.method?(:read_attribute) format(MSG, prefer: 'self[:attr]') else format(MSG, prefer: 'self[:attr] = val') end end