rails/rails — pull request #6942 by insside (2012-07-03 12:38:44+00:00)
Title: Added transform_values function to activesupport hash extension

Similar to transform_keys i have added transform_vaules function

For example, we need read year and month option from params and set to DateTime#change method, with transform values we can use

DateTime.new.change params.symbolize_keys.slice(:year, :month).transform_values(&:to_i)