Skip to content

Conversation

@alexspeller
Copy link

Your example in the readme has a security hole, you can specify any sort order and therefore run arbitrary SQL.

This approach is safer, might be better with DSL support e.g.

handles_sortable_columns 'name', 'product'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant