Skip to content

Commit

Permalink
Use to_unsafe_h to convert unpermitted parameters to a Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dsander committed Apr 28, 2017
1 parent b325452 commit a2de6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/events/index.html.erb
Expand Up @@ -44,7 +44,7 @@
</table>
</div>

<%= paginate @events, params: params.to_h.slice(:hl), theme: 'twitter-bootstrap-3' %>
<%= paginate @events, params: params.to_unsafe_h.slice(:hl), theme: 'twitter-bootstrap-3' %>

<br />

Expand Down

0 comments on commit a2de6c2

Please sign in to comment.