Commit 8bdb20a520f97fc95ef6f09a257627557e04abe0

Authored by Rodrigo Souto
1 parent 1d9bf2f0

shopping-cart: refactor cart_helper inclusion and removing unnecessary append_view_path

plugins/shopping_cart/controllers/shopping_cart_plugin_myprofile_controller.rb
1   -include ShoppingCartPlugin::CartHelper
2   -
3 1 class ShoppingCartPluginMyprofileController < MyProfileController
4   - append_view_path File.join(File.dirname(__FILE__) + '/../views')
5   -
6 2 def edit
7 3 params[:settings] = treat_cart_options(params[:settings])
8 4  
... ...
plugins/shopping_cart/views/shopping_cart_plugin_myprofile/reports.html.erb
1 1 <h1> <%= _('Purchase Reports') %> </h1>
2 2  
3 3 <% extend ProfileHelper %>
  4 +<% extend ShoppingCartPlugin::CartHelper %>
4 5  
5 6 <% status = ShoppingCartPlugin::PurchaseOrder::Status.name; pos=-1 %>
6 7 <% status_collection = [[nil, _('All')]] %>
... ...