diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-01 13:30:07 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 10:27:39 +0200 |
commit | 9541977e049d236564f34cf58660b61e154ccb32 (patch) | |
tree | 46a4828844eea7f3a0ff6eef69f938fcd0af54b7 /railties/lib/generators/rails/app | |
parent | bf672a12a3726a74a436746f4a82fefd9527686c (diff) | |
download | rails-9541977e049d236564f34cf58660b61e154ccb32.tar.gz rails-9541977e049d236564f34cf58660b61e154ccb32.tar.bz2 rails-9541977e049d236564f34cf58660b61e154ccb32.zip |
Make scaffold controller generate agnostic code and mark some hooks as required.
Diffstat (limited to 'railties/lib/generators/rails/app')
-rw-r--r-- | railties/lib/generators/rails/app/app_generator.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/generators/rails/app/app_generator.rb b/railties/lib/generators/rails/app/app_generator.rb index 6bd464a16c..1971d150c8 100644 --- a/railties/lib/generators/rails/app/app_generator.rb +++ b/railties/lib/generators/rails/app/app_generator.rb @@ -20,13 +20,13 @@ module Rails::Generators class_option :with_dispatchers, :type => :boolean, :aliases => "-D", :default => false, :desc => "Add CGI/FastCGI/mod_ruby dispatchers code" - class_option :skip_activerecord, :type => :boolean, :aliases => "-A", :default => false, + class_option :skip_activerecord, :type => :boolean, :aliases => "-O", :default => false, :desc => "Skip ActiveRecord files" - class_option :skip_testunit, :type => :boolean, :aliases => "-U", :default => false, + class_option :skip_testunit, :type => :boolean, :aliases => "-T", :default => false, :desc => "Skip TestUnit files" - class_option :skip_prototype, :type => :boolean, :aliases => "-P", :default => false, + class_option :skip_prototype, :type => :boolean, :aliases => "-J", :default => false, :desc => "Skip Prototype files" # Add Rails options |