Move concern out from under Card and rename

`Colored` is a little icky
This commit is contained in:
Jason Zimdars
2025-04-09 15:42:33 -05:00
parent deb987db2d
commit e02feece1c
2 changed files with 10 additions and 9 deletions
-9
View File
@@ -1,9 +0,0 @@
module Card::Colored
extend ActiveSupport::Concern
COLORS = %w[ #b7462b #ff63a8 #eb7a32 #6ac967 #2c6da8 #663251 ]
included do
attribute :color, default: "#2c6da8"
end
end
+10
View File
@@ -0,0 +1,10 @@
module Colorable
extend ActiveSupport::Concern
COLORS = %w[ #3b3633 #67695e #eb7a32 #bf7c2b #c09c6f #746b1e #2c6da8 #5d618f #663251 #ff63a8 ]
DEFAULT_COLOR = "#2c6da8"
included do
attribute :color, default: DEFAULT_COLOR
end
end