Commit 8bdb20a520f97fc95ef6f09a257627557e04abe0
1 parent
1d9bf2f0
Exists in
staging
and in
42 other branches
shopping-cart: refactor cart_helper inclusion and removing unnecessary append_view_path
Showing
2 changed files
with
1 additions
and
4 deletions
Show diff stats
plugins/shopping_cart/controllers/shopping_cart_plugin_myprofile_controller.rb
1 | -include ShoppingCartPlugin::CartHelper | ||
2 | - | ||
3 | class ShoppingCartPluginMyprofileController < MyProfileController | 1 | class ShoppingCartPluginMyprofileController < MyProfileController |
4 | - append_view_path File.join(File.dirname(__FILE__) + '/../views') | ||
5 | - | ||
6 | def edit | 2 | def edit |
7 | params[:settings] = treat_cart_options(params[:settings]) | 3 | params[:settings] = treat_cart_options(params[:settings]) |
8 | 4 |
plugins/shopping_cart/views/shopping_cart_plugin_myprofile/reports.html.erb
1 | <h1> <%= _('Purchase Reports') %> </h1> | 1 | <h1> <%= _('Purchase Reports') %> </h1> |
2 | 2 | ||
3 | <% extend ProfileHelper %> | 3 | <% extend ProfileHelper %> |
4 | +<% extend ShoppingCartPlugin::CartHelper %> | ||
4 | 5 | ||
5 | <% status = ShoppingCartPlugin::PurchaseOrder::Status.name; pos=-1 %> | 6 | <% status = ShoppingCartPlugin::PurchaseOrder::Status.name; pos=-1 %> |
6 | <% status_collection = [[nil, _('All')]] %> | 7 | <% status_collection = [[nil, _('All')]] %> |