Skip to content

Commit

Permalink
Explain why Arel can't be used in statement
Browse files Browse the repository at this point in the history
  • Loading branch information
sauloperez committed Nov 24, 2020
1 parent b62cddb commit 32bd88b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/customers_with_balance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def query

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
SUM(
Expand Down

0 comments on commit 32bd88b

Please sign in to comment.