aboutsummaryrefslogtreecommitdiffstats
path: root/railties/generators/new_model.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/generators/new_model.rb')
-rwxr-xr-xrailties/generators/new_model.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/railties/generators/new_model.rb b/railties/generators/new_model.rb
deleted file mode 100755
index f6fbf5f002..0000000000
--- a/railties/generators/new_model.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/local/bin/ruby
-require File.dirname(__FILE__) + '/../config/environment'
-require 'generator'
-
-if ARGV.size == 1
- rails_root = File.dirname(__FILE__) + '/..'
- name = ARGV.shift
- Generator::Model.new(rails_root, name).generate
-else
- puts <<-HELP
-
-NAME
- new_model - create model stub files
-
-SYNOPSIS
- new_model ModelName
-
-DESCRIPTION
- The new_model generator takes a model name (in CamelCase) and generates
- a new, empty model in app/models, a test suite in test/unit with one
- failing test case, and a fixtures directory in test/fixtures.
-
-EXAMPLE
- new_model Account
-
- This will generate an Account class in app/models/account.rb, an
- AccountTest in test/unit/account_test.rb, and the directory
- test/fixtures/account.
-
-HELP
-end