fix for uninitialized activeresource error in production