Rails4 fix

Fix the auto include to work in rails4.