fix
This commit is contained in:
parent
8f7a0ce704
commit
893fe1e33b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue