Skip to content

Commit

Permalink
feat bling_order_items_controller.rb: task #213
Browse files Browse the repository at this point in the history
authorize customer with pundit.
  • Loading branch information
Pauloparakleto committed Mar 5, 2024
1 parent cfab622 commit d0c2fb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/bling_order_items_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ class BlingOrderItemsController < ApplicationController
inherit_resources
decorates_assigned :bling_order_item

def index
authorize Customer
index!
end

def update
update! do |success, failure|
success.html do
Expand Down

0 comments on commit d0c2fb9

Please sign in to comment.