Sha256: 1a5615d4811f7b665c96954963fbb4a83be6df2716c66a15006220102d4066bd
Contents?: true
Size: 308 Bytes
Versions: 9
Compression:
Stored size: 308 Bytes
Contents
module EnjuInterLibraryLoan class Ability include CanCan::Ability def initialize(user, ip_address = nil) case user.try(:role).try(:name) when 'Administrator' can :manage, InterLibraryLoan when 'Librarian' can :manage, InterLibraryLoan end end end end
Version data entries
9 entries across 9 versions & 1 rubygems