From 9f642271ed51a303530ae5c93c50c6646647f0d7 Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Fri, 11 Oct 2013 10:14:23 +1100 Subject: [PATCH] [frontend] Stop people encountering uninitialized Taxon errors when they override ProductsController#show --- frontend/app/controllers/spree/products_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/controllers/spree/products_controller.rb b/frontend/app/controllers/spree/products_controller.rb index 63862dc1192..8e283a8f053 100644 --- a/frontend/app/controllers/spree/products_controller.rb +++ b/frontend/app/controllers/spree/products_controller.rb @@ -26,7 +26,7 @@ def show # Do nothing else if referer_path && referer_path.match(/\/t\/(.*)/) - @taxon = Taxon.find_by_permalink($1) + @taxon = Spree::Taxon.find_by_permalink($1) end end end