diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-06-14 18:10:32 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-06-14 18:10:32 +0300 |
commit | bcf9410ec361078193816f10444bdf3379786d93 (patch) | |
tree | 258891127d22463a1d0518e660bc93141fba3d3d /guides/source | |
parent | 88cd09fa47ddf9ea952b2c4d117d725b0d537bae (diff) | |
download | rails-bcf9410ec361078193816f10444bdf3379786d93.tar.gz rails-bcf9410ec361078193816f10444bdf3379786d93.tar.bz2 rails-bcf9410ec361078193816f10444bdf3379786d93.zip |
Wrong documentation about Rails autoload on active_jobs_basics doc [ci skip]
By default Rails automaticaly loads all files under the app directory
Diffstat (limited to 'guides/source')
-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: |