Sha256: 307956f69579b9367009fdba96f8542794fb6b1748b5d252a0da2827b617c56c

Contents?: true

Size: 298 Bytes

Versions: 19

Compression:

Stored size: 298 Bytes

Contents

require 'neo4j-core'

class Neo4jWidget < Neo4j::Node
  def self.create!(*args)
    create(*args)
  end

  def self.count
    Neo4j::Session.query.match('n').pluck('COUNT(n)').first
  end
end

class Neo4jWidgetUsingDatabaseOne < Neo4jWidget
end

class Neo4jWidgetUsingDatabaseTwo < Neo4jWidget
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
database_cleaner-1.6.2 examples/lib/neo4j_models.rb
database_cleaner-1.6.1 examples/lib/neo4j_models.rb
database_cleaner-1.6.0 examples/lib/neo4j_models.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/examples/lib/neo4j_models.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/examples/lib/neo4j_models.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/examples/lib/neo4j_models.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/examples/lib/neo4j_models.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/examples/lib/neo4j_models.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/examples/lib/neo4j_models.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/examples/lib/neo4j_models.rb
database_cleaner-1.5.3 examples/lib/neo4j_models.rb
database_cleaner-1.5.2 examples/lib/neo4j_models.rb
database_cleaner-1.5.1 examples/lib/neo4j_models.rb
database_cleaner-1.5.0 examples/lib/neo4j_models.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/database_cleaner-1.4.1/examples/lib/neo4j_models.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/database_cleaner-1.4.1/examples/lib/neo4j_models.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/database_cleaner-1.4.1/examples/lib/neo4j_models.rb
database_cleaner-1.4.1 examples/lib/neo4j_models.rb
database_cleaner-1.4.0 examples/lib/neo4j_models.rb