Update rubocop to version 1.72.2 and use plugins
configuration style (#33946)
This commit is contained in:
parent
405fa6de55
commit
d75c4bf53e
7 changed files with 37 additions and 27 deletions
|
@ -289,6 +289,16 @@ module Mastodon::CLI
|
|||
fail_with_message 'Invalid URL'
|
||||
end
|
||||
|
||||
PRELOADED_MODELS = %w(
|
||||
Account
|
||||
Backup
|
||||
CustomEmoji
|
||||
Import
|
||||
MediaAttachment
|
||||
PreviewCard
|
||||
SiteUpload
|
||||
).freeze
|
||||
|
||||
private
|
||||
|
||||
def object_storage_summary
|
||||
|
@ -310,16 +320,6 @@ module Mastodon::CLI
|
|||
SQL
|
||||
end
|
||||
|
||||
PRELOADED_MODELS = %w(
|
||||
Account
|
||||
Backup
|
||||
CustomEmoji
|
||||
Import
|
||||
MediaAttachment
|
||||
PreviewCard
|
||||
SiteUpload
|
||||
).freeze
|
||||
|
||||
def preload_records_from_mixed_objects(objects)
|
||||
preload_map = Hash.new { |hash, key| hash[key] = [] }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue