-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change user update to use #fetch for defaults
This changes the use of the || operator when setting the default of the user attribute if the key does not exist to #fetch. This will make sure that if false is passed in as the value it will still fail and use the default setting. This also adds constants to define and array and a hash of symbols which is iterated over to set the users attributes.
- Loading branch information
1 parent
60a3641
commit e8474bd
Showing
1 changed file
with
30 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters