rails/strong_parameters — pull request #39 by svoop (2012-10-04 08:44:24+00:00)
Title: Allow parameter filters to match multi-parameter attributes (DHH compatible)

This commit (only one line of code plus one test) allows filters to match multi-parameter attributes such as "published_at(1i)" from DateHelper.

The test is shamelessly taken from #21, but the actual code is only one line and thus much more efficient.

DHH wrote in reply to #21:
> I'd rather we just default to permit :published_at will also just automatically allow
> :published_at(x) -- instead of all this extra configuration. If you want to take a stab
> at a pull request that does that, please open a new ticket.

Well, this is it.