Please move this file out of the models folder to a different folder (e.g. app/controllers/modules). I was confused for a bit about why ApplicationController was including a model..