module Coco module Concerns module AcceptsTheme extend ActiveSupport::Concern THEMES = [] included do before_initialize do |kwargs| if kwargs[:theme] kwargs[:theme] = kwargs[:theme].to_s.tr("_", "-") end kwargs end end end end end