diff --git a/config/environments/development.rb b/config/environments/development.rb index 63e9b3387..281b8265a 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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 diff --git a/config/environments/test.rb b/config/environments/test.rb index 688ff0752..1b9f17aa0 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -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