Skip to content

Commit

Permalink
Fix usage of NEO4J_TYPE environment variable to match documentation
Browse files Browse the repository at this point in the history
(cherry picked from commit c3f8dcf)
  • Loading branch information
bloomdido authored and cheerfulstoic committed Jul 10, 2016
1 parent f9b28f0 commit 700387b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/neo4j/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ def yaml_path
end

def default_session_type
if ENV['NEO4J_TYPE']
:embedded_db
else
config_data[:type] || :server_db
end.to_sym
type = ENV['NEO4J_TYPE'] || config_data[:type] || :server_db
type.to_sym
end

def default_session_path
Expand Down

0 comments on commit 700387b

Please sign in to comment.