Sha256: fd107c26d9946affd9581ab9f0aa1c2cb896016d9e4dddd15e1b9f033bae35fc
Contents?: true
Size: 375 Bytes
Versions: 40
Compression:
Stored size: 375 Bytes
Contents
class AcceptPolicy < ApplicationPolicy def index? true if user.try(:has_role?, 'Librarian') end def show? true if user.try(:has_role?, 'Librarian') end def create? true if user.try(:has_role?, 'Librarian') end def update? true if user.try(:has_role?, 'Librarian') end def destroy? true if user.try(:has_role?, 'Librarian') end end
Version data entries
40 entries across 38 versions & 2 rubygems