Skip to content

Commit

Permalink
Fix wait_for_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Jan 4, 2017
1 parent 8467458 commit b3356d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
This file should follow the standards specified on [http://keepachangelog.com/]
This project adheres to [Semantic Versioning](http://semver.org/).

## [8.0.4] 2016-01-03

### Fixed

- Fixed/refactored `wait_for_connection`

## [8.0.3] 2016-01-03

### Fixed
Expand Down
5 changes: 3 additions & 2 deletions lib/neo4j/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def empty_config
end

def setup!(neo4j_config = empty_config)
type, url, path, options, wait_for_connection = final_config!(neo4j_config).values_at(:type, :url, :path, :options, :wait_for_connection)
wait_for_connection = neo4j_config.wait_for_connection
type, url, path, options = final_session_config!(neo4j_config).values_at(:type, :url, :path, :options)
register_neo4j_cypher_logging(type || default_session_type)

Neo4j::SessionManager.open_neo4j_session(type || default_session_type,
Expand All @@ -71,7 +72,7 @@ def setup!(neo4j_config = empty_config)
options || {})
end

def final_config!(neo4j_config)
def final_session_config!(neo4j_config)
support_deprecated_session_configs!(neo4j_config)

neo4j_config.session.empty? ? yaml_config_data : neo4j_config.session
Expand Down
2 changes: 1 addition & 1 deletion lib/neo4j/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Neo4j
VERSION = '8.0.3'
VERSION = '8.0.4'
end

0 comments on commit b3356d8

Please sign in to comment.