Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use #next

  • Loading branch information...
commit 1e2ac1905e7f5f7fc5985d4f3154cd23c82f60e1 1 parent 88ed708
@justinko justinko authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/generators/rspec/scaffold/scaffold_generator.rb
View
2  lib/generators/rspec/scaffold/scaffold_generator.rb
@@ -148,7 +148,7 @@ def value_for(attribute)
"#{attribute.name.titleize}".inspect
when :integer
@attribute_id_map ||= {}
- @attribute_id_map[attribute] ||= (@attribute_id_map.keys.size + 1).to_s
+ @attribute_id_map[attribute] ||= @attribute_id_map.keys.size.next.to_s
else
attribute.default.inspect
end
Please sign in to comment.
Something went wrong with that request. Please try again.