Sha256: fbc11543bce1d18f3dcd65cfadb9d99d70b787ef4453ad8f30f031d7b75bf4db
Contents?: true
Size: 502 Bytes
Versions: 20
Compression:
Stored size: 502 Bytes
Contents
module Neo4j class Railtie < ::Rails::Railtie config.neo4j = ActiveSupport::OrderedOptions.new initializer "neo4j.tx" do |app| app.config.middleware.use Neo4j::Rails::LuceneConnectionCloser end # Starting Neo after :load_config_initializers allows apps to # register migrations in config/initializers initializer "neo4j.start", :after => :load_config_initializers do |app| Neo4j::Config.setup.merge!(app.config.neo4j.to_hash) Neo4j.start end end end
Version data entries
20 entries across 20 versions & 1 rubygems