Class: Facio::ServiceGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/facio/service_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject



11
12
13
14
15
# File 'lib/generators/facio/service_generator.rb', line 11

def copy_initializer_file
  template "service.rb", "app/services/#{name}_service.rb"
  template "context.rb", "app/services/#{name}_context.rb"
  template "service_test.rb", "test/services/#{name}_service_test.rb"
end