Sha256: b93befe7d9aa1aef26b1f76e4aa2778be6f1ec40b84e1fb828b643a9a30eba72
Contents?: true
Size: 698 Bytes
Versions: 60
Compression:
Stored size: 698 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, controller.sideload_assets_options super end end class_attribute :sideload_assets_options class << self attr_accessor :abstract_class def inherited(child) child.prepend Sideload super end def sideload_assets(value) self.sideload_assets_options = value end end end
Version data entries
60 entries across 60 versions & 1 rubygems