From 8a4e5b445fa7bcda221866a4e0dd36b0b889f0dc Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Sun, 18 Aug 2019 21:53:56 +0100 Subject: [PATCH] Delete unused frontend auth toekn script override and move the backend one to the head partial --- app/overrides/set_auth_token_in_backend.rb | 5 ----- app/overrides/set_auth_token_in_frontend.rb | 5 ----- app/views/spree/admin/shared/_head.html.haml | 2 ++ 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 app/overrides/set_auth_token_in_backend.rb delete mode 100644 app/overrides/set_auth_token_in_frontend.rb diff --git a/app/overrides/set_auth_token_in_backend.rb b/app/overrides/set_auth_token_in_backend.rb deleted file mode 100644 index 8dcbc5744c..0000000000 --- a/app/overrides/set_auth_token_in_backend.rb +++ /dev/null @@ -1,5 +0,0 @@ -Deface::Override.new(virtual_path: "spree/layouts/admin", - insert_bottom: "[data-hook='admin_inside_head']", - partial: "layouts/auth_token_script", - name: "set_auth_token_in_backend", - original: '6bc2c5de1c8f7542d033548557437c9fe4b3ba02') diff --git a/app/overrides/set_auth_token_in_frontend.rb b/app/overrides/set_auth_token_in_frontend.rb deleted file mode 100644 index aeb51d4194..0000000000 --- a/app/overrides/set_auth_token_in_frontend.rb +++ /dev/null @@ -1,5 +0,0 @@ -Deface::Override.new(virtual_path: "spree/layouts/spree_application", - insert_bottom: "[data-hook='inside_head']", - partial: "layouts/auth_token_script", - name: "set_auth_token_in_frontend", - original: '5659ac7dbf6ac6469907b005b85285b894677815') diff --git a/app/views/spree/admin/shared/_head.html.haml b/app/views/spree/admin/shared/_head.html.haml index 7d741c0804..7c47905b0d 100644 --- a/app/views/spree/admin/shared/_head.html.haml +++ b/app/views/spree/admin/shared/_head.html.haml @@ -24,4 +24,6 @@ = render "layouts/bugherd_script" %link{'data-require' => "font-awesome@*", 'data-semver'=>"4.2.0", 'rel' => "stylesheet", 'href' => "//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.css"} += render "layouts/auth_token_script" + = yield :head