Sha256: 26515c14598c737353f249e85b2a950703cecf8253ddb5037f2fc7724d50b8e4
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
# frozen_string_literal: true 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 return unless ActiveGenerator.configuration.autoload_service_generator_locale invoke('locale:service', [name]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_generator-5.0.0 | lib/generators/service/service_generator.rb |