We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b544c commit 2949ab2Copy full SHA for 2949ab2
app/models/user.rb
@@ -149,7 +149,7 @@ def maybe_send_update_notification
149
150
def set_default_avatar
151
unless self.image.present?
152
- random_avatar = File.new ::Rails.root.join("config/default_avatars/default_avatar_#{rand(5)}.png")
+ random_avatar = File.new ::Rails.root.join("config/default_avatars/default_avatar_#{rand(1..5)}.png")
153
self.image = random_avatar
154
end
155
0 commit comments