pundit: convert favorite groups to pundit.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user