Fix code reloading in development mode

ActionDispatch::Callbacks.to_prepare reloads code on every requests, which is
the desired behaviour in development mode. The other version introduced by
b1d89ee3 only reloads code when Rails configures itself. Hence, when an
other plugin patches the same classes/modules, the patches introduced by
this plugin disappear so everything is broken in development mode.