Sha256: dfefefeed2bf916ca58ed1ac99faa6e62093b88773959623b7fbc4a09ef9815e

Contents?: true

Size: 535 Bytes

Versions: 64

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

require 'view_component'

class Proscenium::ViewComponent < ViewComponent::Base
  extend ActiveSupport::Autoload

  autoload :Sideload
  autoload :ReactComponent
  autoload :CssModules

  include Proscenium::SourcePath
  include CssModules

  module Sideload
    def before_render
      Proscenium::SideLoad.sideload_inheritance_chain self

      super
    end
  end

  class << self
    attr_accessor :abstract_class

    def inherited(child)
      child.prepend Sideload

      super
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
proscenium-0.14.0-x86_64-linux lib/proscenium/view_component.rb
proscenium-0.14.0-aarch64-linux lib/proscenium/view_component.rb
proscenium-0.14.0-arm64-darwin lib/proscenium/view_component.rb
proscenium-0.14.0-x86_64-darwin lib/proscenium/view_component.rb
proscenium-0.13.0-x86_64-linux lib/proscenium/view_component.rb
proscenium-0.13.0-aarch64-linux lib/proscenium/view_component.rb
proscenium-0.13.0-arm64-darwin lib/proscenium/view_component.rb
proscenium-0.13.0-x86_64-darwin lib/proscenium/view_component.rb
proscenium-0.12.0-x86_64-linux lib/proscenium/view_component.rb
proscenium-0.12.0-aarch64-linux lib/proscenium/view_component.rb
proscenium-0.12.0-arm64-darwin lib/proscenium/view_component.rb
proscenium-0.12.0-x86_64-darwin lib/proscenium/view_component.rb
proscenium-0.11.0-x86_64-linux lib/proscenium/view_component.rb
proscenium-0.11.0-aarch64-linux lib/proscenium/view_component.rb
proscenium-0.11.0-arm64-darwin lib/proscenium/view_component.rb
proscenium-0.11.0-x86_64-darwin lib/proscenium/view_component.rb
proscenium-0.11.0.pre.13-x86_64-linux lib/proscenium/view_component.rb
proscenium-0.11.0.pre.13-aarch64-linux lib/proscenium/view_component.rb
proscenium-0.11.0.pre.13-arm64-darwin lib/proscenium/view_component.rb
proscenium-0.11.0.pre.13-x86_64-darwin lib/proscenium/view_component.rb