lib/neo4j/active_rel/query.rb in neo4j-6.0.9 vs lib/neo4j/active_rel/query.rb in neo4j-6.1.0
- old
+ new
@@ -71,12 +71,10 @@
":`#{target_class.mapped_label_name}`)"
end
def as_constant(given_class)
case given_class
- when String
- given_class.constantize
- when Symbol
+ when String, Symbol
given_class.to_s.constantize
when Array
fail "ActiveRel query methods are being deprecated and do not support Array (from|to)_class options. Current value: #{given_class}"
else
given_class