cleanup switch_to supplier and make facebook image https

This commit is contained in:
2020-03-07 11:11:06 -05:00
parent eda3fc280b
commit 68f7d4dd54
6 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class User
def avatar
return '' unless provider.present?
case provider.to_sym
when :facebook then "http://graph.facebook.com/#{uid}/picture?type=square"
when :facebook then "https://graph.facebook.com/#{uid}/picture?type=square"
when :instagram then auth_data['info'].try(:[], 'image')
end
end