Sha256: b85e162a5caa6624025572f4f3a80ed4d5f8656d06049dd6cb2127c58eb7c618

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

class ServiceGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../templates', __FILE__)

  def copy_service_file
    template("service.rb", File.join("app/services", class_path, "#{file_name}.rb"))
  end

  def generate_service_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-2.0.11 lib/generators/service/service_generator.rb