Make report processing a class instead of module
Convert to rails 4.1.1