Fix Brakeman warnings for SQL injection

Description

Fix the SQL injection Brakeman warnings and remove them from the ignore list.

This is well covered by our automated tests, but we should still make sure the following work as usual:

  1. Reordering

    1. work chapters

    2. works in series

    3. FAQs (admin access required)

    4. wrangling guidelines (admin access required)

  2. Inbox sorting

  3. Deleting a psued that has given kudos

  4. Completing a work by posting the third chapter of a work that is currently Chapters: 2/3

  5. Checking where your email address is in the invitation queue

  6. Matching a gift exchange

  7. Viewing the pages for Open Challenges, Open Gift Exchanges, and Open Prompt Memes

 

Environment

None

Status

Assignee

james_

Reporter

james_

Roadmap

Admin
Challenges
FAQ
Inbox
Invitations
Pseuds
Series
Works

Priority

Medium

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

Admin

Milestone

Internal 0.9
Configure