lib/arel/extensions/named_function.rb in arel_toolkit-0.3.0 vs lib/arel/extensions/named_function.rb in arel_toolkit-0.4.0
- old
+ new
@@ -6,9 +6,16 @@
class ToSql
def visit_Arel_Nodes_NamedFunction(o, collector)
aggregate(o.name, o, collector)
end
end
+
+ class Dot
+ def visit_Arel_Nodes_NamedFunction(o)
+ visit_edge o, 'name'
+ function(o)
+ end
+ end
end
end
# rubocop:enable Naming/MethodName
# rubocop:enable Naming/UncommunicativeMethodParamName