Method: RuboCop::Cop::Rails::ReadWriteAttribute#on_send

Defined in:
lib/rubocop/cop/rails/read_write_attribute.rb

#on_send(node) ⇒ Object



28
29
30
31
32
# File 'lib/rubocop/cop/rails/read_write_attribute.rb', line 28

def on_send(node)
  return unless read_write_attribute?(node)

  add_offense(node, :selector)
end