Skip to content

Commit

Permalink
updated enums to use positional arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Jan 13, 2025
1 parent dd34553 commit 67b1c0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/external_asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ExternalAsset < ApplicationRecord
self.inheritance_column = 'class_type'
attr_accessor :sync_options, :content_changed

enum sync_state: %i[synchronized refresh failed fatal]
enum :sync_state, %i[synchronized refresh failed fatal]

belongs_to :seek_entity, polymorphic: true
belongs_to :seek_service, polymorphic: true
Expand Down
2 changes: 1 addition & 1 deletion app/models/message_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# subclasses handle specific details and behaviour according to the message log type
# and this model shouldn't be used directly
class MessageLog < ApplicationRecord
enum message_type: {
enum :message_type, {
project_membership_request: 1,
contact_request: 2,
programme_creation_request: 3, # no longer used
Expand Down

0 comments on commit 67b1c0d

Please sign in to comment.