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 Oct 15, 2024
1 parent 7385f93 commit 9df78f3
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 @@ -91,6 +91,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 @@ -71,6 +71,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 9df78f3

Please sign in to comment.