Sha256: e52d162ea5df2cc8d1a28d7556ace1371f7fbdf89b6c971f8f83419dbd82e87d

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

require 'rails/generators/base'

module MountDoc
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)

      desc "create initializer file for mount_doc."
      def copy_initializer
        template "initializer.rb", "config/initializers/mount_doc.rb"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mount_doc-1.0.0 lib/generators/mount_doc/install_generator.rb
mount_doc-0.0.3 lib/generators/mount_doc/install_generator.rb