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_helper ⇒ Object
15 16 17 18 19 |
# File 'lib/react/rails/controller_lifecycle.rb', line 15 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_helper ⇒ Object
21 22 23 |
# File 'lib/react/rails/controller_lifecycle.rb', line 21 def teardown_react_component_helper @__react_component_helper.teardown(self) end |