allow for rails 4