lib/architect4r/model/queries.rb in architect4r-0.4.3 vs lib/architect4r/model/queries.rb in architect4r-0.4.3.1
- old
+ new
@@ -1,13 +1,9 @@
module Architect4r
module Model
module Queries
extend ActiveSupport::Concern
- module InstanceMethods
-
- end
-
module ClassMethods
def count(opts = {}, &block)
data = connection.execute_cypher("start s=node(#{self.model_root.id}) match (s)<-[:model_type]-(d) return count(d)")
data['data'].flatten.first
\ No newline at end of file