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

Version Path
hyper-component-0.99.6 lib/reactive-ruby/rails/railtie.rb
hyper-component-0.99.5 lib/reactive-ruby/rails/railtie.rb
hyper-component-0.99.4 lib/reactive-ruby/rails/railtie.rb
hyper-component-0.99.3 lib/reactive-ruby/rails/railtie.rb
hyper-component-0.99.2 lib/reactive-ruby/rails/railtie.rb
hyper-component-0.99.1 lib/reactive-ruby/rails/railtie.rb
hyper-component-0.99.0 lib/reactive-ruby/rails/railtie.rb
hyper-react-1.0.0.lap28 lib/reactive-ruby/rails/railtie.rb
hyper-react-1.0.0.lap27 lib/reactive-ruby/rails/railtie.rb
hyper-react-1.0.0.lap26 lib/reactive-ruby/rails/railtie.rb
hyper-react-1.0.0.lap25 lib/reactive-ruby/rails/railtie.rb
hyper-react-1.0.0.lap24 lib/reactive-ruby/rails/railtie.rb
hyper-react-1.0.0.lap23 lib/reactive-ruby/rails/railtie.rb
hyper-react-1.0.0.lap22 lib/reactive-ruby/rails/railtie.rb
hyper-react-1.0.0.lap21 lib/reactive-ruby/rails/railtie.rb