Sha256: 4dbc10d33ff99f323aeb3ff9389fa305efdef9bc1c33c6fb324ef41941e9fc19
Contents?: true
Size: 401 Bytes
Versions: 13
Compression:
Stored size: 401 Bytes
Contents
require "active_generator/base" require "generators/locale/base" class ServiceGenerator < Rails::Generators::NamedBase include ActiveGenerator::Base source_root File.expand_path('../templates', __FILE__) def copy_service_file template("service.rb", "app/services/#{namespace_path}/#{file_name}.rb") end def generate_service_locale_file invoke("locale:service", [name]) end end
Version data entries
13 entries across 13 versions & 1 rubygems