mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Explain why Arel can't be used in statement
This commit is contained in:
@@ -18,6 +18,8 @@ class CustomersWithBalance
|
||||
|
||||
attr_reader :enterprise_id
|
||||
|
||||
# Arel doesn't support CASE statements until v7.1.0 so we'll have to wait with SQL literals
|
||||
# a little longer. See https://github.com/rails/arel/pull/400 for details.
|
||||
def outstanding_balance
|
||||
<<-SQL.strip_heredoc
|
||||
SUM(
|
||||
|
||||
Reference in New Issue
Block a user