I have this class that the server is not picking up changes to unless I kill the server and reload it. All my other classes are automatically updated. How can I get the Rails server (WebBrick) to pick up changes to this class without having to kill the server?
I saw this questions but I'm not using a module: Rails 3.2.x: how to reload app/classes dir during development?
I saw this question but it had no answers: Rails Engine: How to auto reload class upon each request?
class UsersController < ApplicationController
require 'PaymentGateway'
def method
result = PaymentGateway::capture
This is the class I want to automatically reload upon change. It is in the same directory as app/controllers/
class PaymentGateway < ApplicationController
def self.capture
Rails 4.0.0