Sha256: 7882e6c9c139dce9fa26fe298adfeed4ab6dafd2fc0d05bff6f52f46f9af3969
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
module CanTango class Ability module PermitHelpers # by default, only execute permits for which the user # has a role or a role group # also execute any permit marked as special def permits permit_factory.build! end def permit_class_names @permit_class_names ||= permits.map{|p| p.class.to_s} end protected def permit_factory @permit_factory ||= CanTango::PermitEngine::Factory.new self end def permits? config.permits.on? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | lib/cantango/ability/permit_helpers.rb |