[Finishes #60376478] move to rails 4