rails/strong_parameters — pull request #17 by jpignata (2012-03-31 16:42:07+00:00)
Title: Allow parameter filters to match multi-parameter attributes

We're using the DateHelper in our application so in some places our permit list includes things like:

def book_params
params[:book].permit(
:"published_at(1i)",
:"published_at(2i)",
:"published_at(3i)",
:"published_at(4i)",
:"published_at(5i)",
...
)
end

This change matches multi-parameter attributes based upon the head of the key so you can just include `:published_at` in the above example.