Use ProxyObject instead of BasicObject

fixes `DEPRECATION WARNING: ActiveSupport::BasicObject is deprecated!
Use ActiveSupport::ProxyObject instead.` after upgrading to Rails 4.