Automatically reload rails module

前端 未结 3 1264
再見小時候
再見小時候 2021-01-20 18:04

I\'m developing a ruby module that I include in my rails app. I want it to be reloaded automatically when it changes. I\'ve done extensive googling, and looked at the variou

3条回答
  •  没有蜡笔的小新
    2021-01-20 18:11

    I spent sometimes to research this issue as well.

    Here's my findings on how to auto-reload require files in Rails without restarting server.

    The solution is now available as a Ruby gem require_reloader.

提交回复
热议问题