Module: Auth::Shopping::Carts::CartsHelper

Defined in:
app/helpers/auth/shopping/carts/carts_helper.rb

Instance Method Summary collapse

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_pathObject

/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

#edit_cart_path(cart) ⇒ Object

/shopping/carts/:id/edit



21
22
23
# File 'app/helpers/auth/shopping/carts/carts_helper.rb', line 21

def edit_cart_path(cart)
	main_app.send(Auth::OmniAuth::Path.edit_path(Auth.configuration.cart_class),cart)
end

#new_cart_pathObject

get /new



4
5
6
# File 'app/helpers/auth/shopping/carts/carts_helper.rb', line 4

def new_cart_path
  main_app.send(Auth::OmniAuth::Path.new_path(Auth.configuration.cart_class))
end