Sha256: 6bd0c4808b6d02acf72cd1166340757ef97199529a306e134d6f18e68150c0f4

Contents?: true

Size: 809 Bytes

Versions: 2

Compression:

Stored size: 809 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'
require File.dirname(__FILE__) + '/../controller/controller_generator'

class ActorGenerator < Rails::Generator::NamedBase #:nodoc:
 def manifest
   model=["model", file_name]
   view=["view", file_name]
   controller=["controller", file_name]
   Rails::Generator::Scripts::Generate.new.run(model)
   Rails::Generator::Scripts::Generate.new.run(view)
   Rails::Generator::Scripts::Generate.new.run(controller)
      
   record do |m|   
   end
 end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shattered-0.3.3 lib/rails_generator/generators/components/actor/actor_generator.rb
shattered-0.3.2 lib/rails_generator/generators/components/actor/actor_generator.rb