rails/rails — pull request #7582 by tchandy (2012-09-09 19:31:53+00:00)
Title: type_cast_code should always convert values to integer calling #to_i

This pull request is the squashed version of #7509.