From 893fe1e33b5cfdb7b6eef5143538093feed03698 Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Mon, 13 Jan 2020 18:57:23 +0800 Subject: [PATCH] fix --- cancerpredict.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cancerpredict.gemspec b/cancerpredict.gemspec index ec177a9..316de3e 100644 --- a/cancerpredict.gemspec +++ b/cancerpredict.gemspec @@ -3,7 +3,7 @@ routes_text = File.read(ENV['PWD']+'/config/routes.rb') insert_texts = ['get "cancerpredictResult",to: "cancerpredicts#calculate"','post "cancerpredictResult",to: "cancerpredicts#calculate"'] insert_texts.each do |insert_text| - if !routes_text.include(insert_text) + if !routes_text.include?(insert_text) insert_index = routes_text.index('get "/admin/license_denied" => "store_api#render_license_denied"') routes_text.insert(insert_index,insert_text+"\n") end