ruby - Rails engine gem should or should not explicitly load helpers? -
i'm wondering if rails engine gem, such react on rails, should using line of code explicitly load helper:
activesupport.on_load(:action_view) include reactonrailshelper end
this not needed normal rails application use of gem. however, users have reported issue.
any opinions?
here's specific issue reported:
https://github.com/shakacode/react_on_rails/issues/385#issuecomment-209964034
this how react-rails gem (not rails engine):
https://github.com/reactjs/react-rails/blob/master/lib/react/rails/railtie.rb#l42-l44
Comments
Post a Comment