Class: ServiceGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ServiceGenerator
- Defined in:
- lib/generators/service/service_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_service_file ⇒ Object
4 5 6 |
# File 'lib/generators/service/service_generator.rb', line 4 def copy_service_file template("service.rb", File.join("app/services", class_path, "#{file_name}.rb")) end |
#generate_service_locale_file ⇒ Object
8 9 10 |
# File 'lib/generators/service/service_generator.rb', line 8 def generate_service_locale_file invoke("locale:service", [name]) if ActiveGenerator.configuration.autoload_service_generator_locale end |