Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ Layout/SpaceAroundKeyword:
Layout/SpaceAroundOperators:
Enabled: true

# This cop has not been enabled at rails/rails
Layout/SpaceBeforeBrackets:
Enabled: true

Layout/SpaceBeforeComma:
Enabled: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def prefetch_primary_key?(table_name = nil)
do_not_prefetch = @do_not_prefetch_primary_key[table_name]
if do_not_prefetch.nil?
owner, desc_table_name = @connection.describe(table_name)
@do_not_prefetch_primary_key [table_name] = do_not_prefetch = !has_primary_key?(table_name, owner, desc_table_name)
@do_not_prefetch_primary_key[table_name] = do_not_prefetch = !has_primary_key?(table_name, owner, desc_table_name)
end
!do_not_prefetch
end
Expand Down