Fix ActiveResource trying to create objects outside of its namespace

Fixes https://github.com/rails/activeresource/issues/143