pundit: convert favorite groups to pundit.

This commit is contained in:
evazion
2020-03-19 18:12:16 -05:00
parent 50fa674a3e
commit 2c4c29b81a
9 changed files with 80 additions and 54 deletions

View File

@@ -1,9 +1,8 @@
class FavoriteGroupOrdersController < ApplicationController
respond_to :html, :xml, :json, :js
before_action :member_only
def edit
@favorite_group = FavoriteGroup.find(params[:favorite_group_id])
@favorite_group = authorize FavoriteGroup.find(params[:favorite_group_id])
respond_with(@favorite_group)
end
end