Can Rails console reload modules under lib?

后端 未结 4 565
醉话见心
醉话见心 2021-01-30 12:39

I have a module in my Rails project under lib. I run \'rails c\' and do some experimenting in the console. I make a change to the module under lib, type \'reload!\' from the c

4条回答
  •  一生所求
    2021-01-30 13:15

    In case anyone interested, 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.

提交回复
热议问题