From 48e185f980dd3c3bb9004447e3081a75f3263d31 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 21 Jan 2016 10:20:34 -0300 Subject: [PATCH] Include the old layout directly --- application-ng.html.erb | 1 - layouts/angular-layout.html.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 120000 application-ng.html.erb diff --git a/application-ng.html.erb b/application-ng.html.erb deleted file mode 120000 index 9f584f9..0000000 --- a/application-ng.html.erb +++ /dev/null @@ -1 +0,0 @@ -../../../../app/views/layouts/application-ng.html.erb \ No newline at end of file diff --git a/layouts/angular-layout.html.erb b/layouts/angular-layout.html.erb index 8b8a866..74728fd 100644 --- a/layouts/angular-layout.html.erb +++ b/layouts/angular-layout.html.erb @@ -1,5 +1,5 @@ <% if params[:angular_theme_old] || request.fullpath.start_with?('/myprofile') %> - <%= from_theme_include(current_theme, "application-ng") %> + <%= render file: Rails.root.join("app/views/layouts/application-ng.html.erb"), use_full_path: false %> <% else %> <%= from_theme_include(current_theme, "index") %> <% end %> -- libgit2 0.21.2