pundit: convert pools to pundit.

This commit is contained in:
evazion
2020-03-19 19:31:57 -05:00
parent 83eae1bf11
commit ab5432d149
8 changed files with 58 additions and 59 deletions

View File

@@ -1,9 +1,8 @@
class PoolOrdersController < ApplicationController
respond_to :html, :xml, :json, :js
before_action :member_only
def edit
@pool = Pool.find(params[:pool_id])
@pool = authorize Pool.find(params[:pool_id])
respond_with(@pool)
end
end