Sha256: c843977b651d82c00969e34ca2d515128aebbd6fbfda5c7ca15efaf3aee0c74e
Contents?: true
Size: 769 Bytes
Versions: 15
Compression:
Stored size: 769 Bytes
Contents
module ReactiveRuby 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 = ReactiveRuby::ServerRendering::ContextualRenderer app.config.react.view_helper_implementation = ReactiveRuby::Rails::ComponentMount ReactiveRuby::ServerRendering::ContextualRenderer.asset_container_class = ReactiveRuby::ServerRendering::HyperAssetContainer end config.after_initialize do class ::HyperloopController < ::ApplicationController def action_missing(name) render_component end end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems