From 2fefe76ce45b2bbb06f3bc42af82f616036a6dc3 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 4 Jun 2014 15:22:23 +0000 Subject: [PATCH] shopping-cart: view_path must be appended and the module inclusion should be outside the controller --- plugins/shopping_cart/controllers/shopping_cart_plugin_myprofile_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/shopping_cart/controllers/shopping_cart_plugin_myprofile_controller.rb b/plugins/shopping_cart/controllers/shopping_cart_plugin_myprofile_controller.rb index a44174c..1056a14 100644 --- a/plugins/shopping_cart/controllers/shopping_cart_plugin_myprofile_controller.rb +++ b/plugins/shopping_cart/controllers/shopping_cart_plugin_myprofile_controller.rb @@ -1,6 +1,7 @@ -class ShoppingCartPluginMyprofileController < MyProfileController +include ShoppingCartPlugin::CartHelper - include ShoppingCartPlugin::CartHelper +class ShoppingCartPluginMyprofileController < MyProfileController + append_view_path File.join(File.dirname(__FILE__) + '/../views') def edit params[:settings] = treat_cart_options(params[:settings]) -- libgit2 0.21.2