Fix all rubocop warnings
This commit is contained in:
parent
05e39dc619
commit
bf851133ae
48 changed files with 124 additions and 97 deletions
|
@ -16,6 +16,7 @@
|
|||
#
|
||||
|
||||
class AccountWarning < ApplicationRecord
|
||||
# rubocop:disable Lint/RedundantCopDisableDirective, Layout/FirstHashElementIndentation
|
||||
enum action: {
|
||||
none: 0,
|
||||
disable: 1_000,
|
||||
|
@ -25,6 +26,7 @@ class AccountWarning < ApplicationRecord
|
|||
silence: 3_000,
|
||||
suspend: 4_000,
|
||||
}, _suffix: :action
|
||||
# rubocop:enable Lint/RedundantCopDisableDirective, Layout/FirstHashElementIndentation
|
||||
|
||||
belongs_to :account, inverse_of: :account_warnings
|
||||
belongs_to :target_account, class_name: 'Account', inverse_of: :strikes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue