Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prefer %w to the literal array syntax when you need an array of strings.

  • Loading branch information...
commit 9feb51bfaf50833bc092ee43164e7751be1e7020 1 parent 1a77446
@kbighorse kbighorse authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.