tansaku/LocalSupport

View on GitHub
app/models/first_capitals_humanizer.rb

Summary

Maintainability
A
0 mins
Test Coverage

Pass &:capitalize as an argument to map instead of a block.
Open

    phrase.humanize.split(' ').map{|w| w.capitalize}.join(' ')

Use symbols as procs when possible.

Example:

# bad
something.map { |s| s.upcase }

# good
something.map(&:upcase)

There are no issues that match your filters.

Category
Status