diff --git a/app/models/card/colored.rb b/app/models/card/colored.rb deleted file mode 100644 index 7d4ae9c54..000000000 --- a/app/models/card/colored.rb +++ /dev/null @@ -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 diff --git a/app/models/colorable.rb b/app/models/colorable.rb new file mode 100644 index 000000000..4fba4556d --- /dev/null +++ b/app/models/colorable.rb @@ -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