diff options
author | Matthew Draper <matthew@trebex.net> | 2015-06-15 00:50:35 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-06-15 00:50:35 +0930 |
commit | 1ad2bfcbaee3d2647b9b8dfdce460b57e316a1a8 (patch) | |
tree | 258891127d22463a1d0518e660bc93141fba3d3d /guides | |
parent | 88cd09fa47ddf9ea952b2c4d117d725b0d537bae (diff) | |
parent | bcf9410ec361078193816f10444bdf3379786d93 (diff) | |
download | rails-1ad2bfcbaee3d2647b9b8dfdce460b57e316a1a8.tar.gz rails-1ad2bfcbaee3d2647b9b8dfdce460b57e316a1a8.tar.bz2 rails-1ad2bfcbaee3d2647b9b8dfdce460b57e316a1a8.zip |
Merge pull request #20560 from vngrs/wrong_doc_of_active_job
Wrong documentation about Rails autoload on active_jobs_basics doc [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_job_basics.md | 19 |
1 files changed, 0 insertions, 19 deletions
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: |