Skip to content

Commit

Permalink
fixup! Add Note#style
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Mar 21, 2024
1 parent 5bd28cd commit a244cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/note.rb
Expand Up @@ -24,11 +24,11 @@ class Note < ApplicationRecord

cattr_accessor :default_style, default: 'original'
cattr_accessor :style_labels, default: {
'Original': 'original',
'🔵 Blue': 'blue',
'🔴 Red': 'red',
'🟢 Green': 'green',
'🟡 Yellow': 'yellow'
'🟡 Yellow': 'yellow',
'Original': 'original'
}

enum :style, Note.style_labels.values.index_by(&:itself),
Expand Down

0 comments on commit a244cb1

Please sign in to comment.