Sha256: 2185977f2af122740f143d496347fdd8b4efdff89c97996f65b42329ea2eac81
Contents?: true
Size: 716 Bytes
Versions: 5
Compression:
Stored size: 716 Bytes
Contents
# require File.dirname(__FILE__) + '/../config/environment' # require 'rails_generator' # require 'rails_generator/scripts/generate' # ARGV.shift if ['--help', '-h'].include?(ARGV[0]) # Rails::Generator::Scripts::Generate.new.run(ARGV) require File.dirname(__FILE__) + '/../model/model_generator' require File.dirname(__FILE__) + '/../view/view_generator' class ActorGenerator < Rails::Generator::NamedBase #:nodoc: def manifest generators = [ModelGenerator, ViewGenerator] record do |m| generators.each do |generator| generator.check_collisions(m, class_path, class_name) end generators.each do |generator| generator.generate(m, class_path, file_name) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems