Module: RuboCop::Cop::Isucon::Mixin::ManyJoinTableMethods
- Defined in:
- lib/rubocop/cop/isucon/mixin/many_join_table_methods.rb
Overview
Common methods for RuboCop::Cop::Isucon::Mysql2::ManyJoinTable and Sqlite3::ManyJoinTable
Constant Summary collapse
- MSG =
"Avoid SQL with lots of JOINs"
Instance Method Summary collapse
Instance Method Details
#on_send(node) ⇒ Object
13 14 15 16 17 |
# File 'lib/rubocop/cop/isucon/mixin/many_join_table_methods.rb', line 13 def on_send(node) with_db_query(node) do |_, root_gda| check_and_register_offence(root_gda: root_gda, node: node) end end |