class ActiveRecord::JobModelGenerator

Public Instance Methods

create_model_file() click to toggle source

overrides original ModelGenerator#create_model_file to make a job_model instead of a model since we are inheriting from ModelGenerator, we get the tests and all the other good stuff

# File lib/generators/active_record/job_model_generator.rb, line 10
def create_model_file
  template 'job_model.rb', File.join('app/models', class_path, "#{file_name}.rb")
end