Sha256: abcf850f43eecfcacc289e5043c6d84375b775a4ad8009746b8509da9d254611
Contents?: true
Size: 831 Bytes
Versions: 5
Compression:
Stored size: 831 Bytes
Contents
module Hyperstack module Internal module Component module Rails class Railtie < ::Rails::Railtie config.before_configuration do |app| app.config.assets.enabled = true app.config.assets.paths << ::Rails.root.join('app', 'views').to_s app.config.react.server_renderer = ServerRendering::ContextualRenderer app.config.react.view_helper_implementation = ComponentMount ServerRendering::ContextualRenderer.asset_container_class = ServerRendering::HyperAssetContainer end config.after_initialize do class ::HyperstackController < ::ApplicationController def action_missing(_name) render_component end end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems