From: Andy Allan Date: Wed, 17 Mar 2021 15:37:55 +0000 (+0000) Subject: Update code example to follow rubocop recommendations X-Git-Tag: live~2304^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0d313a9e03b11eae940e41896166b1487203bedf?hp=--cc Update code example to follow rubocop recommendations Just for consistency with what you would see elsewhere in the codebase --- 0d313a9e03b11eae940e41896166b1487203bedf diff --git a/CONFIGURE.md b/CONFIGURE.md index 96aac9f96..c165c6d46 100644 --- a/CONFIGURE.md +++ b/CONFIGURE.md @@ -28,7 +28,7 @@ If you create a user by signing up to your local website, you need to confirm th ``` $ bundle exec rails console ->> user = User.find_by_display_name("My New User Name") +>> user = User.find_by(:display_name => "My New User Name") => #[ ... ] >> user.status = "active" => "active" @@ -43,7 +43,7 @@ To give administrator or moderator permissions: ``` $ bundle exec rails console ->> user = User.find_by_display_name("My New User Name") +>> user = User.find_by(:display_name => "My New User Name") => #[ ... ] >> user.roles.create(:role => "administrator", :granter_id => user.id) => #[ ... ]