Class: ActiveService::Generators::ServiceGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ActiveService::Generators::ServiceGenerator
- Defined in:
- lib/generators/active_service/service_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_service ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/generators/active_service/service_generator.rb', line 9 def create_service create_file "#{ActiveService::Configuration.path}/#{file_name}_service.rb", <<-FILE class #{file_name.camelize}Service # your service methods end FILE end |