lib/neo4j/active_node/scope.rb in neo4j-6.0.4 vs lib/neo4j/active_node/scope.rb in neo4j-6.0.5

- old
+ new

@@ -35,13 +35,9 @@ # # @see http://guides.rubyonrails.org/active_record_querying.html#scopes def scope(name, proc) _scope[name.to_sym] = proc - define_method(name) do |query_params = nil, some_var = nil| - self.class.send(name, query_params, some_var, current_scope) - end - klass = class << self; self; end klass.instance_eval do define_method(name) do |query_params = nil, _ = nil| eval_context = ScopeEvalContext.new(self, current_scope || self.query_proxy) proc = _scope[name.to_sym]