Show profile pictures to admins and allow them to upload pics
This commit is contained in:
parent
10d58ef050
commit
d5a9b79f6e
4 changed files with 17 additions and 2 deletions
|
|
@ -160,7 +160,6 @@ class User < ApplicationRecord
|
|||
# Partials should *not* directly call `gravatar_url`
|
||||
def profile_picture(opts = {})
|
||||
return gravatar_url(opts) unless picture.present?
|
||||
puts "ASKED FOR PROFILE PIC!! #{opts[:size]}"
|
||||
size = (opts[:size] || 0).to_i
|
||||
if size < 50
|
||||
picture.tiny.url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue