Permalink
Browse files

Merge pull request #51 from koenpunt/patch-2

Using camelize instead of custom split/join for class_name method
  • Loading branch information...
2 parents cf5dbde + 98ae0a4 commit d7b9fe02980b19dccf7478f694920acf0aa935a7 @twobitlabs twobitlabs committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tasks/standalone_migrations.rb
@@ -99,6 +99,6 @@ def file_name migration
end
def class_name str
- str.underscore.split('_').map { |s| s.capitalize }.join
+ str.parameterize.underscore.camelize
end
end

0 comments on commit d7b9fe0

Please sign in to comment.