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.17.1 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.17.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.16.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.15.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.14.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.13.1 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.13.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.12.2 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.12.1 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.12.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.11.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.10.1.beta.2 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.10.1.beta.1 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.10.1.beta.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.10.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.9.1 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.9.0 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.8.9 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.8.8 app/components/coco/concerns/accepts_theme.rb
coveragebook_components-0.8.7 app/components/coco/concerns/accepts_theme.rb