Fix loading rails 4