lib/react/rails/controller_renderer.rb in react-rails-1.3.0 vs lib/react/rails/controller_renderer.rb in react-rails-1.3.1

- old
+ new

@@ -3,12 +3,12 @@ include ActionView::Helpers::TagHelper include ActionView::Helpers::TextHelper attr_accessor :output_buffer - attr_reader :request def initialize(options={}) - @request = options[:request] + controller = options[:controller] + @__react_component_helper = controller.__react_component_helper end def call(name, options, &block) props = options.fetch(:props, {}) options = options.slice(:data, :tag).merge(prerender: true)