module React::Rails::ControllerLifecycle::ClassMethods
Public Instance Methods
per_request_react_rails_prerenderer()
click to toggle source
Call this in the controller to check out a prerender for the whole request. You can access the renderer with {#react_rails_prerenderer}.
# File lib/react/rails/controller_lifecycle.rb, line 18 def per_request_react_rails_prerenderer around_action_with_fallback = respond_to?(:around_action) ? :around_action : :around_filter public_send(around_action_with_fallback, :per_request_react_rails_prerenderer) end