Pārlūkot izejas kodu

Use select method as query is deprecated

master
Adrian Short pirms 9 gadiem
vecāks
revīzija
0b3f7dabd0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      app.rb

+ 1
- 1
app.rb Parādīt failu

@@ -100,7 +100,7 @@ get '/services/:slug' do
@d_start = @service.payments.min(:d)
@d_end = @service.payments.max(:d)
@results = repository(:default).adapter.query("
@results = repository(:default).adapter.select("
SELECT s.name AS supplier_name, s.slug AS supplier_slug, SUM(p.amount) AS total
FROM payments p, suppliers s
WHERE p.supplier_id = s.id


Notiek ielāde…
Atcelt
Saglabāt