Sha256: 62e0d423701a2e7f5fefa1fff03afe3cb36b3f915f789627247e3be1893c408f
Contents?: true
Size: 381 Bytes
Versions: 10
Compression:
Stored size: 381 Bytes
Contents
module EnjuInventory class Ability include CanCan::Ability def initialize(user, ip_address = nil) case user.try(:role).try(:name) when 'Administrator' can :manage, [ Inventory, InventoryFile ] when 'Librarian' can :manage, [ Inventory, InventoryFile ] end end end end
Version data entries
10 entries across 10 versions & 1 rubygems