fix un-initialized constant issue

 as described here: https://github.com/rails/rails/issues/14664