diff options
Diffstat (limited to 'config/initializers/postgresql_cte.rb')
-rw-r--r-- | config/initializers/postgresql_cte.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/postgresql_cte.rb b/config/initializers/postgresql_cte.rb index 56689bc8e74..9726f912179 100644 --- a/config/initializers/postgresql_cte.rb +++ b/config/initializers/postgresql_cte.rb @@ -103,7 +103,7 @@ module ActiveRecord end def build_with(arel) - with_statements = with_values.flat_map do |with_value| + with_statements = with_values.flat_map { |with_value| case with_value when String with_value @@ -120,7 +120,7 @@ module ActiveRecord when Arel::Nodes::As with_value end - end + } unless with_statements.empty? if recursive_value |