Update rails dependency to version 4.0.4