lib/neo4j/active_node/scope.rb in neo4j-9.2.4 vs lib/neo4j/active_node/scope.rb in neo4j-9.3.0
- old
+ new
@@ -43,9 +43,13 @@
eval_context = ScopeEvalContext.new(self, current_scope || self.query_proxy)
proc = full_scopes[name.to_sym]
_call_scope_context(eval_context, query_params, proc)
end
end
+
+ define_method(name) do |*query_params|
+ as(:n).public_send(name, *query_params)
+ end
end
# rubocop:disable Style/PredicateName
def has_scope?(name)
ActiveSupport::Deprecation.warn 'has_scope? is deprecated and may be removed from future releases, use scope? instead.', caller