[api] ignore code outside of functions - it's just how rails works