From 2559018decedb1900994d318ab511d43f8a557f6 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 16 Oct 2024 11:51:26 +0200 Subject: Update Rails and Ruby MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch level releases which fixes some minor issues on both Ruby and Ruby and Rails. Signed-off-by: Miquel Sabaté Solà --- app/models/thing.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/models/thing.rb b/app/models/thing.rb index f3596f1..7ec6dc6 100644 --- a/app/models/thing.rb +++ b/app/models/thing.rb @@ -12,9 +12,10 @@ class Thing < ApplicationRecord has_many :tag_references, as: :taggable, dependent: :destroy has_many :tags, through: :tag_references - enum :status, %i[read notread tobepublished], validate: true - enum :kind, %i[other poetry theater essay shorts - novel paper letters phd chronicle bio it], validate: true + enum :status, { read: 0, notread: 1, tobepublished: 2 }, validate: true + enum :kind, { other: 0, poetry: 1, theater: 2, essay: 3, + shorts: 4, novel: 5, paper: 6, letters: 7, + phd: 8, chronicle: 9, bio: 10, it: 11 }, validate: true # Returns all things which match the given text for any of the string columns # from the table. -- cgit v1.2.3