hw-cookbooks/postgresql — pull request #176 by joshk0 (2014-09-19 16:43:22+00:00)
Title: Coerce max_connections to an integer

max_connections must be a non-zero integer. It so happens that calling
to_i on things that aren't integers returns 0, which should fail
validation correctly.

Otherwise, if you specify the max_connections attribute as an integer,
the existing (convoluted) check fails because you can't to_i a Fixnum.