Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Rename the enum_prefix and enum_suffix options to _prefix and _suffix #20999
This pull request renames the
Cross-refs #19813 (comment).
Have a nice day.
This makes it more clear that they are reserved keywords and also it seems less redundant as the line already starts with the call to the `enum` method.
The note regarding the `_prefix` and `_suffix` options is no longer useful since they were renamed specifically for this purpose. Also the given example doesn't show what these options enable and in which case they are really useful (when there are conflicting values for instance). Refs #20999. [Godfrey Chan & Robin Dupret]
… skip] `:enum_prefix` and `:enum_suffix` was changed to `:_prefix` and `:_suffix` in rails#20999.