class RuboCop::Cop::Rails::HasAndBelongsToMany

# has_many :ingredients, through: :recipe_ingredients
# good
# has_and_belongs_to_many :ingredients
# bad
@example
Checks for the use of the has_and_belongs_to_many macro.

def on_send(node)

def on_send(node)
  return unless node.command?(:has_and_belongs_to_many)
  add_offense(node.loc.selector)
end