app/controllers/cart_items_controller.rb
class CartItemsController < ApplicationController
load_and_authorize_resource :cart
load_and_authorize_resource through: :cart
def create
end
def destroy
end
def update
end
private
def cart_item_params
params.require(:cart_item).permit(:total_cents, :currency)
end
end