Sha256: d4ff44b01be75350e5371fde5c3da82cac72e21831d5a245aa5a043bb31364e9
Contents?: true
Size: 375 Bytes
Versions: 1
Compression:
Stored size: 375 Bytes
Contents
class ServiceGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_service_file template('service.rb', File.join('app/services', class_path, "#{file_name}.rb")) end def generate_locale_file invoke('locale:service', [name]) if ActiveGenerator::Settings.config.autoload_service_generator_locale end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_generator-4.0.0 | lib/generators/service/service_generator.rb |