I have a class that I put inside lib/network
:
module NetworkApi
class NetworkProxy
end
end
Then in another class, I referenced this class:
network_proxy = ::NetworkApi::NetworkProxy.new(params)
Everything runs normally on my development environment, but when I deploy to the server, I get an error at the above line with the message:
NameError: uninitialized constant NetworkApi::NetworkProxy
I don't know why this strange error happens. Please tell me why.