Skip to content
Browse files

Using camelize instead of custom split/join for class_name method

  • Loading branch information...
1 parent cf5dbde commit 98ae0a48901f14bef92d1cbcad73f3c55b389497 @koenpunt koenpunt committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tasks/standalone_migrations.rb
View
2 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 98ae0a4

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