-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add section for hash syntax of enums #255
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
README.adoc
Outdated
@@ -385,6 +385,24 @@ class Transaction < ActiveRecord::Base | |||
end | |||
---- | |||
|
|||
=== Enums [[enums]] | |||
|
|||
Prefer hash syntax over arrays for `enums`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT of
`enum`s
or
Prefer using the hash syntax for enum
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to Prefer using the hash syntax for enum.
@@ -385,6 +385,26 @@ class Transaction < ActiveRecord::Base | |||
end | |||
---- | |||
|
|||
=== Enums [[enums]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I investigated whether === Enums
or === Enum
would be better. The API says Enum
, but the guide says Enums
, so I think that Enums
would be fine.
Closes #144
Ref: rubocop/rubocop-rails#78