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

Version Path
active_generator-2.0.10 lib/generators/service/service_generator.rb
active_generator-2.0.9 lib/generators/service/service_generator.rb
active_generator-2.0.8 lib/generators/service/service_generator.rb
active_generator-2.0.7 lib/generators/service/service_generator.rb
active_generator-2.0.6 lib/generators/service/service_generator.rb
active_generator-2.0.5 lib/generators/service/service_generator.rb
active_generator-2.0.4 lib/generators/service/service_generator.rb
active_generator-2.0.3 lib/generators/service/service_generator.rb
active_generator-2.0.2 lib/generators/service/service_generator.rb
active_generator-2.0.1 lib/generators/service/service_generator.rb
active_generator-2.0.0 lib/generators/service/service_generator.rb
active_generator-1.0.1 lib/generators/service/service_generator.rb
active_generator-1.0.0 lib/generators/service/service_generator.rb