Skip to content

Commit e268351

Browse files
committed
Retrieve gravatar img securely
1 parent 89e3541 commit e268351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/donation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def total
1010
sum(:amount).to_f / 100
1111
end
1212

13-
def stats
13+
astats
1414
{ total: connection.select_value('SELECT SUM(amount) FROM donations') }
1515
end
1616

@@ -48,7 +48,7 @@ def homepage=(url)
4848
end
4949

5050
def gravatar_url
51-
super || Gravatar.new(email || '').image_url
51+
super || Gravatar.new(email || '').image_url(ssl: true)
5252
end
5353

5454
def vat

0 commit comments

Comments
 (0)