diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2014-08-22 19:30:36 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2014-08-22 20:06:22 +0000 |
commit | e63a02ccfbbdc0aeefd57617c835a2adc8588dd3 (patch) | |
tree | 3b1c8d6b0847f2abb952ff1411f12d3cd2633f5a /activejob/lib/rails | |
parent | b47d8dea25aa4c1b0d02603adc00cf63f2163f21 (diff) | |
download | rails-e63a02ccfbbdc0aeefd57617c835a2adc8588dd3.tar.gz rails-e63a02ccfbbdc0aeefd57617c835a2adc8588dd3.tar.bz2 rails-e63a02ccfbbdc0aeefd57617c835a2adc8588dd3.zip |
[ActiveJob] Add hook for test_framework and test templates
Diffstat (limited to 'activejob/lib/rails')
-rw-r--r-- | activejob/lib/rails/generators/job/job_generator.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activejob/lib/rails/generators/job/job_generator.rb b/activejob/lib/rails/generators/job/job_generator.rb index 78a9c27606..979ffcb748 100644 --- a/activejob/lib/rails/generators/job/job_generator.rb +++ b/activejob/lib/rails/generators/job/job_generator.rb @@ -7,12 +7,14 @@ module Rails class_option :queue, type: :string, default: 'default', desc: 'The queue name for the generated job' + check_class_collision suffix: 'Job' + + hook_for :test_framework + def self.default_generator_root File.dirname(__FILE__) end - check_class_collision suffix: 'Job' - def create_job_file template 'job.rb', File.join('app/jobs', class_path, "#{file_name}_job.rb") end |