Sha256: dc6470602c7961b37ea71a0a87265c8ee329412fb5e46df0726ac207703b2141
Contents?: true
Size: 390 Bytes
Versions: 2
Compression:
Stored size: 390 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 return unless ActiveGenerator::Settings.config.autoload_service_generator_locale invoke('locale:service', [name]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_generator-4.0.6 | lib/generators/service/service_generator.rb |
active_generator-4.0.5 | lib/generators/service/service_generator.rb |