Class: RailsServices::Generators::CreateGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RailsServices::Generators::CreateGenerator
- Defined in:
- lib/generators/rails_services/create_generator.rb
Overview
creates a service class
Instance Method Summary collapse
Methods included from Fileable
#form_object_file, #form_spec_file, #form_unit_file, #object_directory, #service_object_file, #service_spec_file, #service_unit_file
Methods included from Nameable
#form_class_name, #module_name, #qualified_name, #service_class_name, #subfolder_name
Instance Method Details
#create_service ⇒ Object
19 20 21 22 23 |
# File 'lib/generators/rails_services/create_generator.rb', line 19 def create_service copy_base_service_class template 'base_service_new.rb.erb', "app/services/#{object_directory}/#{service_object_file}" create_test end |