Method: RuboCop::Cop::Rails::DelegateAllowBlank#on_send

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

#on_send(node) ⇒ Object



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

def on_send(node)
  offending_node = allow_blank_option(node)

  return unless offending_node

  add_offense(offending_node)
end