Class: Serviceable::Generators::ActionGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Serviceable::Generators::ActionGenerator
- Defined in:
- lib/generators/serviceable/action_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_service_file ⇒ Object
17 18 19 |
# File 'lib/generators/serviceable/action_generator.rb', line 17 def create_service_file template "action_service.rb.tt", File.join("app/services", class_path, "#{file_name}/#{action_name}_service.rb") end |
#create_test_file ⇒ Object
21 22 23 |
# File 'lib/generators/serviceable/action_generator.rb', line 21 def create_test_file template "service_test.rb.tt", File.join("test/services", class_path, "#{file_name}/#{action_name}_service_test.rb") end |