rails/strong_parameters — pull request #51 by geoffgarside (2012-10-24 13:59:39+00:00)
Title: Fix Regexp.escape(filter) for Ruby 1.8.

Fixes an issue introduced in #39 for Ruby 1.8 with `Regexp.escape`.

Ruby 1.8 `Regexp.escape` does not accept symbols like Ruby 1.9, so explicitly call `#to_s` on `filter` to avoid the "can't convert Symbol to String" exception.