method

create_job_file

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: JobGenerator
create_job_file() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activejob/lib/rails/generators/job/job_generator.rb, line 20
      def create_job_file
        template "job.rb", File.join("app/jobs", class_path, "#{file_name}_job.rb")

        in_root do
          if behavior == :invoke && !File.exist?(application_job_file_name)
            template "application_job.rb", application_job_file_name
          end
        end
      end
Register or log in to add new notes.