Upgrade Rails to address security flaws