From e56f1e13d07cf2beb750f5ca8d94f0a18bcbf984 Mon Sep 17 00:00:00 2001 From: Brian Underwood Date: Tue, 19 Jul 2016 10:00:55 +0200 Subject: [PATCH] Fixing break where `require 'neo4j/railtie'` isn't inserted in Rails 5 See https://github.com/neo4jrb/devise-neo4j/issues/26 --- neo4j.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/neo4j.rb b/neo4j.rb index e9a30c9b1..2c040fae7 100644 --- a/neo4j.rb +++ b/neo4j.rb @@ -16,9 +16,7 @@ application generator -application_code = "\nrequire 'neo4j/railtie'" - -inject_into_file 'config/application.rb', application_code, after: 'require "sprockets/railtie"' +inject_into_file 'config/application.rb', "\nrequire 'neo4j/railtie'", after: 'require "active_record/railtie"' yaml_data = <