Skip to content

Commit

Permalink
Using camelize instead of custom split/join for class_name method
Browse files Browse the repository at this point in the history
  • Loading branch information
koenpunt authored and thuss committed May 10, 2012
1 parent f80d871 commit 901f63c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/standalone_migrations.rb
Expand Up @@ -99,6 +99,6 @@ def file_name migration
end end


def class_name str def class_name str
str.underscore.split('_').map { |s| s.capitalize }.join str.parameterize.underscore.camelize
end end
end end

0 comments on commit 901f63c

Please sign in to comment.