Class: Workarea::Storefront::WishListsController
- Inherits:
-
Storefront::ApplicationController
- Object
- Storefront::ApplicationController
- Workarea::Storefront::WishListsController
- Defined in:
- app/controllers/workarea/storefront/wish_lists_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/controllers/workarea/storefront/wish_lists_controller.rb', line 4 def index if params[:wish_list_query].present? @wish_lists = WishList .search(params[:wish_list_query], params[:location]) .page(params[:page] || 1) end end |
#show ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'app/controllers/workarea/storefront/wish_lists_controller.rb', line 12 def show wish_list = WishList.find_by_token(params[:id]) WishList::Pricing.perform(wish_list) @wish_list = WishListViewModel.new( wish_list, ) end |