From 5017bb7f2e92878ac93348273f1f12a31b2075ea Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Thu, 9 Jun 2016 03:40:44 -0500 Subject: [PATCH] Fix spelling ``` cat << 'EOF' > .git/hooks/pre-push bundle exec rake rubocop if command -v misspell >/dev/null; then misspell -w -error -source=text {app,config,lib,spec,test,docs,bin}/**/* 2>/dev/null fi EOF chmod +x .git/hooks/pre-push ``` --- docs/general/serializers.md | 2 +- test/benchmark/app.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/general/serializers.md b/docs/general/serializers.md index 91d558a8..417cfa4d 100644 --- a/docs/general/serializers.md +++ b/docs/general/serializers.md @@ -266,7 +266,7 @@ In the controller, the scope/scope_name options are equal to the [`serialization_scope`method](https://github.com/rails-api/active_model_serializers/blob/d02cd30fe55a3ea85e1d351b6e039620903c1871/lib/action_controller/serialization.rb#L13-L20), which is `:current_user`, by default. -Specfically, the `scope_name` is defaulted to `:current_user`, and may be set as +Specifically, the `scope_name` is defaulted to `:current_user`, and may be set as `serialization_scope :view_context`. The `scope` is set to `send(scope_name)` when `scope_name` is present and the controller responds to `scope_name`. diff --git a/test/benchmark/app.rb b/test/benchmark/app.rb index bc0d3689..c39e9b4e 100644 --- a/test/benchmark/app.rb +++ b/test/benchmark/app.rb @@ -43,7 +43,7 @@ class BenchmarkApp < Rails::Application config.secret_key_base = 'abc123' config.consider_all_requests_local = false - # otherwise deadlock occured + # otherwise deadlock occurred config.middleware.delete 'Rack::Lock' # to disable log files