Sha256: 87e52bb236d92428cc6f2880547de69802fc5b355e2a43f9b6dd42cc7748b508

Contents?: true

Size: 484 Bytes

Versions: 116

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

require 'generators/rails/decorator_generator'

class PgDecoratorGenerator < Rails::Generators::DecoratorGenerator
  source_root File.expand_path('templates', __dir__)

  remove_hook_for :test_framework

  # :doc:
  def namespace
    nil
  end

  # :doc:
  def class_path
    []
  end

  def create_module_file; end

  private

  def class_path_original
    @class_path.first
  end

  def parent_class_name
    'PgEngine::BaseRecordDecorator'
  end
end

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
pg_rails-7.3.2 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.3.1 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.3.0 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.2.3 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.2.2 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.2.1 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.2.0 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.16 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.15 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.14 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.13 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.12 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.11 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.10 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.9 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.8 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.7 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.6 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.5 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb
pg_rails-7.1.4 pg_scaffold/lib/generators/pg_decorator/pg_decorator_generator.rb