Autocorrect Rails/EnumSyntax

This commit is contained in:
Henne Vogelsang 2024-12-02 13:15:26 +01:00
parent 5e439aa07b
commit 5b49af7559
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
4 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ class SurveyQuestion < ActiveRecord::Base
has_many :survey_replies, dependent: :destroy
# Order of this list should not be changed without proper action!
enum kind: [:boolean, :choice, :string, :text, :datetime, :numeric]
enum :kind, [:boolean, :choice, :string, :text, :datetime, :numeric]
ICONS = { boolean: 'circle-dot', choice: 'square-check', string: 'pen-to-square', text: 'align-left', datetime: 'clock', numeric: 'hashtag' }.freeze