Sha256: d697d96f271180c8e9133694b57c9b0b7bfdfdadebebe15c79ff6bc11865b9e1

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

require 'annotate_rb'

module AnnotateRb
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc 'Copy annotaterb rakefiles for automatic annotation of models'
      source_root File.expand_path('templates', __dir__)

      def copy_tasks
        # Copies the rake task into Rails project's lib/tasks directory
        template 'auto_annotate_models.rake', 'lib/tasks/auto_annotate_models.rake'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
annotaterb-4.0.0.beta.1 lib/generators/annotate_rb/install_generator.rb