add Rails 4 support