Sha256: 5ef1e30ea2f5b60d0fa3f984f81738010535b4bef2bd5994068705ee5b62f89b

Contents?: true

Size: 328 Bytes

Versions: 75

Compression:

Stored size: 328 Bytes

Contents

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

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
coveragebook_components-0.19.10 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.9 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.8 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.7 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.6 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.5 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.4 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.3 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.2 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.1 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.19.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.18.8 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.18.7 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.18.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.17.7 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.17.6 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.17.5 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.17.4 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.17.3 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.17.2 app/components/coco/concerns/accepts_theme.rb