Module: Auth::Shopping::CartItems::CartItemsHelper

Defined in:
app/helpers/auth/shopping/cart_items/cart_items_helper.rb

Instance Method Summary collapse

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_pathObject

/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(options={})
    main_app.send("create_multiple_" + Auth.configuration.cart_item_class.underscore.pluralize.gsub("\/","_")+ "_path",options)
end

#edit_cart_item_path(cart_item) ⇒ Object

/shopping/cart_items/:id/edit



21
22
23
# File 'app/helpers/auth/shopping/cart_items/cart_items_helper.rb', line 21

def edit_cart_item_path(cart_item)
	main_app.send(Auth::OmniAuth::Path.edit_path(Auth.configuration.cart_item_class),cart_item)
end

#new_cart_item_pathObject

get /new



4
5
6
# File 'app/helpers/auth/shopping/cart_items/cart_items_helper.rb', line 4

def new_cart_item_path
  main_app.send(Auth::OmniAuth::Path.new_path(Auth.configuration.cart_item_class))
end