3.8.0.txt

doc/release_notes/3.8.0.txt
Last Update: 2018-05-17 13:49:47 -0700

New Features

  • The convert_each! method in the typecast_params plugin now accepts a Proc or Method value for the :keys option. The proc or method is called with the current array or hash that typecast params is operating on, and should return an array of keys to use for the conversion.

  • The convert_each! method in the typecast_params plugin will now automatically handle hashes with keys from ‘0’..‘N’, without a :keys option being provided.

    This makes it possible to handle parameter names such as foo[bar], foo[baz], foo[bar], and foo[baz], if you want to avoid the issues related to rack’s issues when parsing array parameters.

Other Improvements

  • The Roda::RodaVersionNumber constant has been added for easier version comparisons. It is 30080 for version 3.8.0.

Backwards Compatibility

  • When an unsupported type is given as value of the :keys option to the convert_each! method in the typecast_params plugin, a ProgrammerError exception is now raised.