diff options
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 2 | ||||
-rw-r--r-- | guides/source/active_job_basics.md | 19 |
2 files changed, 1 insertions, 20 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index fb0a52b076..39bed955a4 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -493,7 +493,7 @@ module ActionController "Token #{values * ", "}" end - # Sets a WWW-Authenticate to let the client know a token is desired. + # Sets a WWW-Authenticate header to let the client know a token is desired. # # controller - ActionController::Base instance for the outgoing response. # realm - String realm to use in the header. diff --git a/guides/source/active_job_basics.md b/guides/source/active_job_basics.md index cc7a944f49..22f3c0146a 100644 --- a/guides/source/active_job_basics.md +++ b/guides/source/active_job_basics.md @@ -76,25 +76,6 @@ class GuestsCleanupJob < ActiveJob::Base end ``` -### Make the Job Available for Use - -Rails does not autoload the `app/jobs` directory by default. To make your job -accessible in the rest of your application you need to add the directory to the -auto-load paths: - -```ruby -# config/application.rb -module YourApp - class Application < Rails::Application - # Let Rails autoload your job classes for use in your code - config.autoload_paths << Rails.root.join('app/jobs') - end -end -``` - -Now you can make use of the job anywhere in your code (e.g. in your controllers -or models). - ### Enqueue the Job Enqueue a job like so: |