Sha256: 27c4fb6ece6468324f5649237e1936bba7ad101d267cbd1fc7d0bb3913aa900d
Contents?: true
Size: 645 Bytes
Versions: 7
Compression:
Stored size: 645 Bytes
Contents
module React module Rails module ControllerLifecycle extend ActiveSupport::Concern included do # use old names to support Rails 3 before_filter :setup_react_component_helper after_filter :teardown_react_component_helper attr_reader :__react_component_helper end def setup_react_component_helper new_helper = React::Rails::ViewHelper.helper_implementation_class.new new_helper.setup(self) @__react_component_helper = new_helper end def teardown_react_component_helper @__react_component_helper.teardown(self) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems