Skip to content

Commit

Permalink
Raise on unpermitted parameters in dev and test env
Browse files Browse the repository at this point in the history
This setting should ensure we don't re-introduce any code that silently "accepts" unpermitted parameters.
  • Loading branch information
MrSerth committed Sep 10, 2024
1 parent c62c20c commit a529c5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
# Raises error for missing translations.
config.i18n.raise_on_missing_translations = true

# Raises error for unpermitted parameters (default is `:log`).
config.action_controller.action_on_unpermitted_parameters = :raise

# Annotate rendered view with file names.
config.action_view.annotate_rendered_view_with_filenames = true

Expand Down
3 changes: 3 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
# Raises error for missing translations.
config.i18n.raise_on_missing_translations = true

# Raises error for unpermitted parameters (default is `:log`).
config.action_controller.action_on_unpermitted_parameters = :raise

# Annotate rendered view with file names.
config.action_view.annotate_rendered_view_with_filenames = true

Expand Down

0 comments on commit a529c5d

Please sign in to comment.