Module: Ingress::PermissionsRepository::Hashes
- Defined in:
- lib/ingress/permissions_repository.rb
Overview
creates hashes with the default values required in PermissionsRepository’s constructor
Class Method Summary collapse
-
.role_rules ⇒ Object
One level deep hash returning an array.
-
.role_subject_action_rule ⇒ Object
Three level deep hash returning an array.
Class Method Details
.role_rules ⇒ Object
One level deep hash returning an array
80 81 82 |
# File 'lib/ingress/permissions_repository.rb', line 80 def role_rules Hash.new { |hash, key| hash[key] = [] } end |
.role_subject_action_rule ⇒ Object
Three level deep hash returning an array
69 70 71 72 73 74 75 76 77 |
# File 'lib/ingress/permissions_repository.rb', line 69 def role_subject_action_rule Hash.new do |hash1, key1| hash1[key1] = Hash.new do |hash2, key2| hash2[key2] = Hash.new do |hash3, key3| hash3[key3] = [] end end end end |