We're updating the issue view to help you get more done. 

Strong parameters: Languages

Description

Brakeman says:
LanguagesController
create
Unprotected mass assignment near line 22: Language.new(params[:language])

LanguagesController
update
Unprotected mass assignment near line 37: Language.find_by_short(params[:id]).update_attributes(param...

How to test:
92% automated test coverage. For manual testing, we'll want to check that we can create and edit a language without fun new errors. (Languages are used for the Support and Abuse forms and for classifying and filtering works.)

Create a language:
1. Log in as admin
2. Go to http://test.archiveofourown.org/languages because we don't have it linked anywhere, oops
3. Choose "Add a language"
4. Fill in the form
5. Press "Create Language"

Edit a language:
1. Log in as admin
2. Go to http://test.archiveofourown.org/languages
3. Choose "Edit" on an existing language
4. Make any changes on the form
5. Press "Update Language"

Environment

None

Status

Assignee

Kamil Ogórek

Reporter

Sarken

Roadmap

Admin
Internationalization

Priority

Medium

Affects versions

0.9.168

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

Admin

Epic Link

Milestone

Internal 0.9