Sha256: 2f9139219283b19410bc8dddfed0b951262d84924eb6d4df8358270489098e39

Contents?: true

Size: 379 Bytes

Versions: 9

Compression:

Stored size: 379 Bytes

Contents

module Documentation
  module Generators
    class ScaffoldGenerator < Rails::Generators::NamedBase
      argument :attributes, type: :array, default: [], banner: "field:type field:type"
      source_root File.expand_path("templates", __dir__)

      def copy_files
        template "resource.md", ".documentation_api/sections/#{plural_file_name}.md"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
documentation-zero-0.0.9 lib/generators/documentation/scaffold/scaffold_generator.rb
documentation-zero-0.0.8 lib/generators/documentation/scaffold/scaffold_generator.rb
documentation-zero-0.0.7 lib/generators/documentation/scaffold/scaffold_generator.rb
documentation-zero-0.0.6 lib/generators/documentation/scaffold/scaffold_generator.rb
documentation-zero-0.0.5 lib/generators/documentation/scaffold/scaffold_generator.rb
documentation-zero-0.0.4 lib/generators/documentation/scaffold/scaffold_generator.rb
documentation-zero-0.0.3 lib/generators/documentation/scaffold/scaffold_generator.rb
documentation-zero-0.0.2 lib/generators/documentation/scaffold/scaffold_generator.rb
documentation-zero-0.0.1 lib/generators/documentation/scaffold/scaffold_generator.rb