From 836941159a1758d8f9e3a74e11766ea3c3cf83e5 Mon Sep 17 00:00:00 2001 From: Sean Taylor Date: Mon, 9 Jan 2017 14:39:14 -0800 Subject: [PATCH] Adds '\n' to the routes.rb addition This breaks if there was previously anything on line 2 of the file. --- .../solidus_paypal_braintree/install/install_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/solidus_paypal_braintree/install/install_generator.rb b/lib/generators/solidus_paypal_braintree/install/install_generator.rb index 4990ef4a..3ca17d59 100644 --- a/lib/generators/solidus_paypal_braintree/install/install_generator.rb +++ b/lib/generators/solidus_paypal_braintree/install/install_generator.rb @@ -20,7 +20,7 @@ def add_migrations def mount_engine insert_into_file File.join('config', 'routes.rb'), after: "Rails.application.routes.draw do\n" do - "mount SolidusPaypalBraintree::Engine, at: '/solidus_paypal_braintree'" + "mount SolidusPaypalBraintree::Engine, at: '/solidus_paypal_braintree'\n" end end