hack to fix rails-api#490