mirror of
https://github.com/github/rails.git
synced 2026-01-25 22:38:33 -05:00
Fixed that generate scaffold claims all words are reserved #2200, #2211 [alancfrancis@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -67,6 +67,9 @@ class ScaffoldGenerator < Rails::Generator::NamedBase
|
||||
m.directory File.join('app/views', controller_class_path, controller_file_name)
|
||||
m.directory File.join('test/functional', controller_class_path)
|
||||
|
||||
# Depend on model generator but skip if the model exists.
|
||||
m.dependency 'model', [singular_name], :collision => :skip
|
||||
|
||||
# Scaffolded forms.
|
||||
m.complex_template "form.rhtml",
|
||||
File.join('app/views',
|
||||
@@ -79,8 +82,6 @@ class ScaffoldGenerator < Rails::Generator::NamedBase
|
||||
:end_mark => 'eoform',
|
||||
:mark_id => singular_name
|
||||
|
||||
# Depend on model generator but skip if the model exists.
|
||||
m.dependency 'model', [singular_name], :collision => :skip
|
||||
|
||||
# Scaffolded views.
|
||||
scaffold_views.each do |action|
|
||||
|
||||
Reference in New Issue
Block a user