Class: Axn::RailsIntegration::Generators::AxnGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Axn::RailsIntegration::Generators::AxnGenerator
- Defined in:
- lib/axn/rails/generators/axn_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_action_file ⇒ Object
12 13 14 |
# File 'lib/axn/rails/generators/axn_generator.rb', line 12 def create_action_file template "action.rb.erb", "app/actions/#{file_path}.rb" end |
#create_spec_file ⇒ Object
16 17 18 19 20 |
# File 'lib/axn/rails/generators/axn_generator.rb', line 16 def create_spec_file return unless spec_generation_enabled? template "action_spec.rb.erb", "spec/actions/#{file_path}_spec.rb" end |