Skip to content

Commit

Permalink
Prefer reduce to inject
Browse files Browse the repository at this point in the history
This is more inline with community conventions and is the new thoughtbot
preference.

thoughtbot/guides#237
  • Loading branch information
jferris committed Nov 20, 2014
1 parent 1f03cb6 commit ef72d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/style_guides/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ClassVars:
CollectionMethods:
PreferredMethods:
find: detect
reduce: inject
inject: reduce
collect: map
find_all: select

Expand Down

0 comments on commit ef72d02

Please sign in to comment.