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

Version Path
neo4j-1.0.0.beta.20 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.19 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.18 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.17 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.16 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.15 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.14 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.13 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.12 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.11 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.10 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.9 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.8 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.7 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.6 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.5 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.4 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.3 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.2 lib/neo4j/rails/railtie.rb
neo4j-1.0.0.beta.1 lib/neo4j/rails/railtie.rb