Sha256: 8124210fdc3b52362762b999fffff6cd1e87a9796ca4e569c70a78eed7b0a0ed
Contents?: true
Size: 927 Bytes
Versions: 4
Compression:
Stored size: 927 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(*) parts = params[:action].split('__') render_component (parts[0..-2]+[parts.last.camelize]).join('::') end end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems