fix activeresource build method