Permalink
Browse files

Using camelize instead of custom split/join for class_name method

  • Loading branch information...
1 parent f80d871 commit 901f63c9483867fce1981f5554cff140d7da7ca9 @koenpunt koenpunt committed with thuss 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 901f63c

Please sign in to comment.