Allow use rails 4