1 2 3 4 5 6 7 8 9 10 11
class WorkbenchPolicy < ApplicationPolicy class Scope < Scope def resolve scope end end def update? user.has_permission?('workbenches.update') end end