Support rails 4.