Skip to content
Browse files

Fix error in constant name. Closes #354

  • Loading branch information...
1 parent 5967d4b commit 27b0cf222fafe41653d3a53485edf1811991570a @alindeman alindeman committed with justinko Apr 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/generators/rspec/scaffold/scaffold_generator.rb
View
4 lib/generators/rspec/scaffold/scaffold_generator.rb
@@ -67,7 +67,7 @@ def params
# support for namespaced-resources
def ns_file_name
- if $ARGV[0].match(/(\w+)\/(\w+)/)
+ if ARGV[0].match(/(\w+)\/(\w+)/)
"#{$1.underscore}_#{$2.singularize.underscore}"
else
file_name
@@ -76,7 +76,7 @@ def ns_file_name
# support for namespaced-resources
def ns_table_name
- if $ARGV[0].match(/(\w+)\/(\w+)/)
+ if ARGV[0].match(/(\w+)\/(\w+)/)
"#{$1.underscore}/#{$2.tableize}"
else
table_name

0 comments on commit 27b0cf2

Please sign in to comment.
Something went wrong with that request. Please try again.