Sha256: f8f7a3bb6287ac2bb6e2b90032140a86bbe4cee41ec0b01f73eb711e6488d398

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 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

  def namespace # :doc:
    nil
  end

  def class_path # :doc:
    []
  end
  def create_module_file
  end

  private

    def class_path_original
      @class_path.first
    end


    def parent_class_name
      'PgRails::BaseDecorator'
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pg_scaffold-0.1.0 lib/generators/pg_decorator/pg_decorator_generator.rb