1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-15 00:24:09 +01:00
fab-manager/app/policies/cart_context.rb

16 lines
306 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Pundit Additional context for authorizing a product offering
class CartContext
attr_reader :customer_id, :is_offered
def initialize(customer_id, is_offered)
@customer_id = customer_id
@is_offered = is_offered
end
def policy_class
CartPolicy
end
end