Module: Auth::Shopping::Carts::CartsHelper
- Defined in:
- app/helpers/auth/shopping/carts/carts_helper.rb
Instance Method Summary collapse
-
#cart_path(cart) ⇒ Object
(PUT/PATCH/GET) - individual cart.
-
#carts_path ⇒ Object
/carts (GET - all carts /CREATE - individual cart).
-
#edit_cart_path(cart) ⇒ Object
/shopping/carts/:id/edit.
-
#new_cart_path ⇒ Object
get /new.
Instance Method Details
#cart_path(cart) ⇒ Object
(PUT/PATCH/GET) - individual cart
9 10 11 12 |
# File 'app/helpers/auth/shopping/carts/carts_helper.rb', line 9 def cart_path(cart) main_app.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.cart_class),cart) end |
#carts_path ⇒ Object
/carts (GET - all carts /CREATE - individual cart)
16 17 18 |
# File 'app/helpers/auth/shopping/carts/carts_helper.rb', line 16 def carts_path main_app.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.cart_class)) end |