Sha256: e59c0bd7e00c8cdde337ba4908ab95cc14e6df7d2d42dd605477cec199b718f1

Contents?: true

Size: 973 Bytes

Versions: 59

Compression:

Stored size: 973 Bytes

Contents

module Auth::Shopping::CartItems::CartItemsHelper

	## get /new
	def new_cart_item_path
      main_app.send(Auth::OmniAuth::Path.new_path(Auth.configuration.cart_item_class))
    end

    ## (PUT/PATCH/GET) - individual cart_item
    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 (GET - all cart_items /CREATE - individual cart_item) 
	def cart_items_path
    	main_app.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.cart_item_class))
    end

    ##/shopping/cart_items/:id/edit
    def edit_cart_item_path(cart_item)
    	main_app.send(Auth::OmniAuth::Path.edit_path(Auth.configuration.cart_item_class),cart_item)
    end

    def create_multiple_cart_items_path(options={})
        main_app.send("create_multiple_" + Auth.configuration.cart_item_class.underscore.pluralize.gsub("\/","_")+ "_path",options)
    end

end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.9 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.8 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.7 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.6 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.5 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.4 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.3 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.2 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.1 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.5.0 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.4.9 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.4.8 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.4.7 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.4.6 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.4.5 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.4.4 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.4.3 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.4.2 app/helpers/auth/shopping/cart_items/cart_items_helper.rb
wordjelly-auth-1.4.0 app/helpers/auth/shopping/cart_items/cart_items_helper.rb