Update rails dependency ~> 4.0 (support Rails 4.1)