rails-api does not work with custome generator