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/media_attachment.rb | |
parent | 44a7d87cb1f5df953b6c14c16c59e2e4ead1bcb9 (diff) |
Autofix Rubocop Rails/EnumHash (#23737)
Diffstat (limited to 'app/models/media_attachment.rb')
-rw-r--r-- | app/models/media_attachment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index 5916b0b4b..c6f2352e0 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -33,8 +33,8 @@ class MediaAttachment < ApplicationRecord include Attachmentable - enum type: [:image, :gifv, :video, :unknown, :audio] - enum processing: [:queued, :in_progress, :complete, :failed], _prefix: true + enum type: { :image => 0, :gifv => 1, :video => 2, :unknown => 3, :audio => 4 } + enum processing: { :queued => 0, :in_progress => 1, :complete => 2, :failed => 3 }, _prefix: true MAX_DESCRIPTION_LENGTH = 1_500 |