Sha256: 5533a88c06b161264230406921cf5f5078ab22cf2afcae474714bb304e01e14a

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

require 'rails/generators'

module Rswag3
  module Ui
    class CustomGenerator < Rails::Generators::Base
      source_root File.expand_path('../../../../../../lib/rswag3/ui', __FILE__)

      def add_custom_index
        copy_file('index.erb', 'app/views/rswag3/ui/home/index.html.erb')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rswag3-ui-0.0.2 lib/generators/rswag3/ui/custom/custom_generator.rb
rswag3-ui-0.0.1 lib/generators/rswag3/ui/custom/custom_generator.rb