diff --git a/app/models/snippet.rb b/app/models/snippet.rb index b3b3de21dee..b7f396681af 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -229,7 +229,7 @@ class Snippet < ApplicationRecord (public? && (title_changed? || content_changed?)) end - # snippers are the biggest sources of spam + # snippets are the biggest sources of spam override :allow_possible_spam? def allow_possible_spam? false diff --git a/doc/development/api_graphql_styleguide.md b/doc/development/api_graphql_styleguide.md index 053eb55420e..9ff5603e8a4 100644 --- a/doc/development/api_graphql_styleguide.md +++ b/doc/development/api_graphql_styleguide.md @@ -220,7 +220,7 @@ end them non-nullable. These options can still be overridden by adding them as arguments. - **`ability_field`**: Expose an ability defined in our policies. This - takes behaves the same way as `permission_field` and the same + behaves the same way as `permission_field` and the same arguments can be overridden. - **`abilities`**: Allows exposing several abilities defined in our policies at once. The fields for these will all have be non-nullable