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
2 changes: 1 addition & 1 deletion app/models/person.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Person < ApplicationRecord
enum :role, %w[host producer guest].to_enum_h, prefix: true, allow_nil: true
enum :role, %w[editor host producer guest].to_enum_h, prefix: true, allow_nil: true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the sort order, so will put "Editor" first in the dropdown - is that your intention?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idk if order matters much with only 4 options - alphabetical? add this at the end?
If I were to guess at the usage, I would guess host is only on the podcast, not specified on each episode unless it is a different host for one episode.
So, %w[guest host producer editor]? Whaddya think B?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went alphabetical, because it was naturally in alphabetical order. But yea, I hear this. Because its on both the Podcast & Episode I might suggest:

[host producer editor guest]


belongs_to :owner, -> { with_deleted }, polymorphic: true, optional: true, touch: true

Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ en:
organization: Organization
role: Role
roles:
editor: Editor
guest: Guest
host: Host
producer: Producer
Expand Down
Loading