Skip to content

Commit

Permalink
Fixing break where require 'neo4j/railtie' isn't inserted in Rails 5
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic authored Jul 19, 2016
1 parent 8fe54e6 commit e56f1e1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions neo4j.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <<YAML
development:
Expand All @@ -30,4 +28,3 @@
YAML

create_file 'config/neo4j.yml', yaml_data

0 comments on commit e56f1e1

Please sign in to comment.