Move concern out from under Card and rename
`Colored` is a little icky
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user