Sha256: 3b7886237c51c403a82931b6934ecec57c5cbb2d0954dcebfdae6677cd5a5d71
Contents?: true
Size: 354 Bytes
Versions: 19
Compression:
Stored size: 354 Bytes
Contents
class QcPlusJobGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def generate_lib template "job.rb.erb", File.join("app", "jobs", class_path, "#{file_name}.rb") if defined?(RSpec) template "job_spec.rb.erb", File.join("spec", "jobs", class_path, "#{file_name}_spec.rb") end end end
Version data entries
19 entries across 19 versions & 1 rubygems