From 54b06ad5489b6074cfc11887bb1b70723bfb342c Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 12 Feb 2025 02:08:06 -0800 Subject: [PATCH] Update granblue_enums.rb Remove included block --- app/models/concerns/granblue_enums.rb | 31 --------------------------- 1 file changed, 31 deletions(-) diff --git a/app/models/concerns/granblue_enums.rb b/app/models/concerns/granblue_enums.rb index fe057da..6b85fca 100644 --- a/app/models/concerns/granblue_enums.rb +++ b/app/models/concerns/granblue_enums.rb @@ -31,35 +31,4 @@ module GranblueEnums Primal: 5, None: 6 }.freeze - - included do - # Make sure the model has been loaded with its table before calling enum. - if respond_to?(:column_names) && table_exists? && column_names.include?('rarity') - enum rarity: RARITIES - end - - if respond_to?(:column_names) && table_exists? && column_names.include?('element') - enum element: ELEMENTS - end - - if respond_to?(:column_names) && table_exists? && column_names.include?('gender') - enum gender: GENDERS - end - - if respond_to?(:column_names) && table_exists? && column_names.include?('proficiency1') - enum proficiency1: PROFICIENCY, _prefix: :proficiency1, _default: :None - end - - if respond_to?(:column_names) && table_exists? && column_names.include?('proficiency2') - enum proficiency2: PROFICIENCY, _prefix: :proficiency2, _default: :None - end - - if respond_to?(:column_names) && table_exists? && column_names.include?('race1') - enum race1: RACES, _prefix: :race1, _default: :Unknown - end - - if respond_to?(:column_names) && table_exists? && column_names.include?('race2') - enum race2: RACES, _prefix: :race2, _default: :None - end - end end