This commit is contained in:
Joffrey JAFFEUX 2018-08-29 13:51:16 +02:00 committed by GitHub
parent ef36fdfb64
commit 06f18b0e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ class PluginGenerator < Rails::Generators::NamedBase
class_option :author, type: :string, desc: "Plugin author", required: true
class_option :stylesheet, type: :boolean, desc: "Generate Stylesheet", default: true
class_option :javascript, type: :boolean, desc: "Generate Javascript initializer", default: true
class_option :scheduled_job, type: :boolean, desc: "Generate Stylesheet", default: false
class_option :scheduled_job, type: :boolean, desc: "Generate scheduled job", default: false
def create_scheduled_job_file
return unless @options['scheduled_job']