Class: Torquebox::ServiceGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_serviceObject



5
6
7
# File 'lib/generators/torquebox/service/service_generator.rb', line 5

def generate_service
  template "service.rb.erb", "app/services/#{file_name}.rb"
end