Sha256: 30ff01db4b14766664aaaf1011bf90f7379ea15c87b479a3344b58d9f248c87a
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
module CanTango class Ability module PermissionHelpers def permissions permission_factory.build! end protected def permission_factory @permission_factory ||= CanTango::PermissionEngine::Factory.new self end def permissions? config.permissions.on? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | lib/cantango/ability/permission_helpers.rb |