Class: RigidWorkflow::Generators::WorkflowGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- RigidWorkflow::Generators::WorkflowGenerator
- Defined in:
- lib/generators/rigid_workflow/workflow_generator.rb
Overview
Generates a new workflow class file.
Instance Method Summary collapse
Instance Method Details
#create_workflow_file ⇒ Object
9 10 11 12 |
# File 'lib/generators/rigid_workflow/workflow_generator.rb', line 9 def create_workflow_file template "workflow.rb.erb", File.join("app/workflows", "#{file_name}.rb") end |