Sha256: 993283818e1aed5d6729c1b192b729517e8f27cfc6f93ddcd8e1b50c707d6b29
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
class Cbac::KnownPermission < ActiveRecord::Base set_table_name "cbac_known_permissions" cattr_accessor :PERMISSION_TYPES @@PERMISSION_TYPES = {:context => 0, :generic => 1} def self.find_context_permissions(conditions = {}) all(:conditions => conditions.merge(:permission_type => @@PERMISSION_TYPES[:context])) end def self.find_generic_permissions(conditions = {}) all(:conditions => conditions.merge(:permission_type => @@PERMISSION_TYPES[:generic])) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cbac-0.6.1 | lib/cbac/known_permission.rb |
cbac-0.6.0 | lib/cbac/known_permission.rb |