replaced deprecated ActiveSupport::BasicObject with ActiveSupport::ProxyObject