diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 23:00:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 05:00:36 +0100 |
commit | 63e63538861bd850a38a282e37de046639afa993 (patch) | |
tree | 6163b8725c595af0cc40460b0ff2a5eee5988ffc /app/models/relay.rb | |
parent | 44a7d87cb1f5df953b6c14c16c59e2e4ead1bcb9 (diff) |
Autofix Rubocop Rails/EnumHash (#23737)
Diffstat (limited to 'app/models/relay.rb')
-rw-r--r-- | app/models/relay.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/relay.rb b/app/models/relay.rb index c66bfe4ff..e9c425743 100644 --- a/app/models/relay.rb +++ b/app/models/relay.rb @@ -14,7 +14,7 @@ class Relay < ApplicationRecord validates :inbox_url, presence: true, uniqueness: true, url: true, if: :will_save_change_to_inbox_url? - enum state: [:idle, :pending, :accepted, :rejected] + enum state: { idle: 0, pending: 1, accepted: 2, rejected: 3 } scope :enabled, -> { accepted } |