Module: React::Rails::ControllerLifecycle

Extended by:
ActiveSupport::Concern
Defined in:
lib/react/rails/controller_lifecycle.rb

Instance Method Summary collapse

Instance Method Details

#setup_react_component_helperObject



13
14
15
16
17
# File 'lib/react/rails/controller_lifecycle.rb', line 13

def setup_react_component_helper
  new_helper = React::Rails::ViewHelper.helper_implementation_class.new
  new_helper.setup(self)
  @__react_component_helper = new_helper
end

#teardown_react_component_helperObject



19
20
21
# File 'lib/react/rails/controller_lifecycle.rb', line 19

def teardown_react_component_helper
  @__react_component_helper.teardown(self)
end