komposable / komponent

An opinionated way of organizing front-end code in Ruby on Rails, based on components
http://komponent.io
MIT License
426 stars 31 forks source link

Improvements for install generator #52

Closed florentferry closed 6 years ago

florentferry commented 6 years ago

Changes to component modules are not autoloaded.

The gem can autoload the path only if we know it before initialization, but due to optional path which can be set in an initializer, we can't know the path to autoload.

The line removed do nothing, because the initialization of the application was already be done, and the array autoload_paths was been frozen.

2 solutions:

closes #58

Spone commented 6 years ago

Let's add it to the README, until we find a better way. Except if @sigmike has an idea?

florentferry commented 6 years ago

@Spone Good enough to merge on master branch ?