Sha256: e8f8f2777abe4737cf57542429b732c659be20cc00f21703eb2e15ccdf6c0b42
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 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.configuration.autoload_service_generator_locale end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_generator-3.0.0 | lib/generators/service/service_generator.rb |