Permalink
Browse files

Move model dependency to the end of the scaffold generator manifest. …

…Closes #10696 [drnic]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8558 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 752f633 commit 5ccc3cf448c5ba41761d1f50a476f6793331511d @jeremy jeremy committed Jan 5, 2008
View
4 railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb
@@ -54,8 +54,6 @@ def manifest
m.template('layout.html.erb', File.join('app/views/layouts', controller_class_path, "#{controller_file_name}.html.erb"))
m.template('style.css', 'public/stylesheets/scaffold.css')
- m.dependency 'model', [name] + @args, :collision => :skip
-
m.template(
'controller.rb', File.join('app/controllers', controller_class_path, "#{controller_file_name}_controller.rb")
)
@@ -64,6 +62,8 @@ def manifest
m.template('helper.rb', File.join('app/helpers', controller_class_path, "#{controller_file_name}_helper.rb"))
m.route_resources controller_file_name
+
+ m.dependency 'model', [name] + @args, :collision => :skip
end
end

0 comments on commit 5ccc3cf

Please sign in to comment.