Class: Flow::Generators::StateGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Flow::Generators::StateGenerator
- Defined in:
- lib/generators/flow/state/state_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_application_state ⇒ Object
10 11 12 |
# File 'lib/generators/flow/state/state_generator.rb', line 10 def create_application_state template "state.rb.erb", File.join("app/states/", class_path, "#{file_name}_state.rb") end |