class RuboCop::Cop::Rails::HasAndBelongsToMany
This cop checks for the use of the has_and_belongs_to_many macro.
def on_send(node)
def on_send(node) return unless command?(:has_and_belongs_to_many, node) add_offense(node, :selector) end
This cop checks for the use of the has_and_belongs_to_many macro.
def on_send(node) return unless command?(:has_and_belongs_to_many, node) add_offense(node, :selector) end