Skip to content

Commit

Permalink
Prefer %w to the literal array syntax when you need an array of strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
kbighorse committed Mar 25, 2013
1 parent 1a77446 commit 9feb51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -216,7 +216,7 @@ abbreviations.
default_scope { where(active: true) }

# constants come up next
GENDERS = ['male', 'female']
GENDERS = %w(male female)

# afterwards we put attr related macros
attr_accessor :formatted_date_of_birth
Expand Down

0 comments on commit 9feb51b

Please sign in to comment.