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 e268351 commit 5531e9dCopy full SHA for 5531e9d
app/models/donation.rb
@@ -10,7 +10,7 @@ def total
10
sum(:amount).to_f / 100
11
end
12
13
- astats
+ def stats
14
{ total: connection.select_value('SELECT SUM(amount) FROM donations') }
15
16
0 commit comments