Sha256: c293b17b90a7931fe0a41b3018d614b9f79ef2b748fab933931063101f5318e8
Contents?: true
Size: 637 Bytes
Versions: 188
Compression:
Stored size: 637 Bytes
Contents
module Rails module Generators class GeneratorGenerator < NamedBase check_class_collision :suffix => "Generator" class_option :namespace, :type => :boolean, :default => true, :desc => "Namespace generator under lib/generators/name" def create_generator_files directory '.', generator_dir end protected def generator_dir if options[:namespace] File.join("lib", "generators", regular_class_path, file_name) else File.join("lib", "generators", regular_class_path) end end end end end
Version data entries
188 entries across 149 versions & 19 rubygems