lib/cbac/known_permission.rb in cbac-0.5.4 vs lib/cbac/known_permission.rb in cbac-0.6.0
- old
+ new
@@ -1,14 +1,14 @@
-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
+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