Set load path from gem instead of using install generator
Spone opened this issue · 3 comments
Spone commented
florentferry commented
If you load it directly from gem, you loose advantage of changing default root path (https://github.com/komposable/komponent#change-default-root-path). But maybe not an issue to remove that option ?
Spone commented
Can't we use the Rails.application.config.komponent.root
value in config.paths.add
in case it's called from the gem?
nicolas-brousse commented
It's what
komponent/lib/komponent/engine.rb
Line 55 in eb4267b