New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1330 fix #1331
1330 fix #1331
Conversation
…ActiveRel get wrapped (cherry picked from commit 618246b)
Codecov Report@@ Coverage Diff @@
## master #1331 +/- ##
==========================================
- Coverage 97.06% 96.59% -0.47%
==========================================
Files 203 205 +2
Lines 12337 12704 +367
==========================================
+ Hits 11975 12272 +297
- Misses 362 432 +70
Continue to review full report at Codecov.
|
lib/neo4j/tasks/migration.rake
Outdated
neo4j_url = ENV['NEO4J_URL'] || 'http://localhost:7474' | ||
$:.unshift File.dirname('./') | ||
Neo4j::ActiveBase.on_establish_session do | ||
type = neo4j_url.match(/^bolt/) ? :bolt : http |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think http here should be :http ..
This commit resolves my issues if I set that environment variable to a bolt:// URL in the Rakefile but fails with this otherwise:
'NameError: undefined local variable or method `http' for main:Object'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch, thanks! Since you can confirm this I'll go ahead and get it in and release a patch version
Fixes #1353 |
Fixes #1330
This pull introduces/changes:
neo4j
gem (not just rails apps)Railtie
for loading an environment for non-Rails apps (I'd still like this to be able to look for theneo4j.yml
, but this should work for now)Pings:
@subvertallchris
@ProGM