Module: Auth::Shopping::CartItems::CartItemsHelper
- Defined in:
- app/helpers/auth/shopping/cart_items/cart_items_helper.rb
Instance Method Summary collapse
-
#cart_item_path(cart_item) ⇒ Object
(PUT/PATCH/GET) - individual cart_item.
-
#cart_items_path ⇒ Object
/cart_items (GET - all cart_items /CREATE - individual cart_item).
- #create_multiple_cart_items_path(options = {}) ⇒ Object
-
#edit_cart_item_path(cart_item) ⇒ Object
/shopping/cart_items/:id/edit.
-
#new_cart_item_path ⇒ Object
get /new.
Instance Method Details
#cart_item_path(cart_item) ⇒ Object
(PUT/PATCH/GET) - individual cart_item
9 10 11 12 |
# File 'app/helpers/auth/shopping/cart_items/cart_items_helper.rb', line 9 def cart_item_path(cart_item) main_app.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.cart_item_class),cart_item) end |
#cart_items_path ⇒ Object
/cart_items (GET - all cart_items /CREATE - individual cart_item)
16 17 18 |
# File 'app/helpers/auth/shopping/cart_items/cart_items_helper.rb', line 16 def cart_items_path main_app.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.cart_item_class)) end |
#create_multiple_cart_items_path(options = {}) ⇒ Object
25 26 27 |
# File 'app/helpers/auth/shopping/cart_items/cart_items_helper.rb', line 25 def create_multiple_cart_items_path(={}) main_app.send("create_multiple_" + Auth.configuration.cart_item_class.underscore.pluralize.gsub("\/","_")+ "_path",) end |