Uploaded image for project: 'Archive of Our Own'
  1. Archive of Our Own
  2. AO3-4737

Start the migration to strong parameters.

    Details

    • Type: Improvement
    • Status: Deployed
    • Priority: Medium
    • Resolution: DeployedToBeta
    • Affects Version/s: 0.9.166
    • Fix Version/s: 0.9.169
    • Milestone:
      Internal 0.9
    • Difficulty:
      Medium
    • Components:
      AutomatedTests, BackEnd

      Description

      Rails 4 has moved the matter of mass assignment protection from the model into the controller. Instead of specifying accessible or protected attributes in the model, Rails now requires us to inform the controller which params it should allow through from the outside world into our application.

      strong_parameters is a gem that will help ease us into the Rails 4 way, by changing mass assignment protection model by model and controller by controller. Fewer conflicts, less code rot!

      https://github.com/otwcode/otwarchive/pull/2399

        Attachments

          Activity

            People

            • Assignee:
              zz9pzza2 james
              Reporter:
              zz9pzza2 james
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: