MakeYourLaws/MakeYourLaws

View on GitHub
app/controllers/cart_items_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
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