Wrapping the bootstrap-sass gem in another gem causes asset manifests to break

后端 未结 2 1329
梦如初夏
梦如初夏 2021-01-14 09:27

I\'m trying to wrap the bootstrap-sass gem inside another gem (let\'s call it my-engine). Along the way, I\'m building a small Rails application to test things out. As a fi

2条回答
  •  爱一瞬间的悲伤
    2021-01-14 09:39

    Make sure 'bootstrap-sass' is required in your engine. One sensible place to do this is in your lib/my-engine.rb file:

    require 'bootstrap-sass'
    

    Adding the bootstrap-sass gem as a runtime dependency in the .gemspec isn't enough when you're trying to wrap gems.

提交回复
热议问题