Sha256: 820ebb829a6ee7c98fbd0fdd9d20c08408edeb65816452a8c00e713ef31ae285

Contents?: true

Size: 317 Bytes

Versions: 16

Compression:

Stored size: 317 Bytes

Contents

module RoleAuthorization
  module AllowGroup
    include RoleAuthorization::Ruleset
    cattr_ruleset :ruleset

    class << self
      def define(name, &block)
        add_to_ruleset(name, &block)
      end

      def get(*names)
        ruleset.values_at(*names.flatten.compact).compact
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
role_authorization-0.9.6 lib/role_authorization/controller/allow_group.rb
role_authorization-0.9.5 lib/role_authorization/controller/allow_group.rb
role_authorization-0.9.4 lib/role_authorization/controller/allow_group.rb
role_authorization-0.9.3 lib/role_authorization/controller/allow_group.rb
role_authorization-0.9.2 lib/role_authorization/controller/allow_group.rb
role_authorization-0.9.1 lib/role_authorization/controller/allow_group.rb
role_authorization-0.9.0 lib/role_authorization/controller/allow_group.rb
role_authorization-0.6.2 lib/role_authorization/controller/allow_group.rb
role_authorization-0.6.1 lib/role_authorization/controller/allow_group.rb
role_authorization-0.6.0 lib/role_authorization/controller/allow_group.rb
role_authorization-0.5.9 lib/role_authorization/controller/allow_group.rb
role_authorization-0.5.8 lib/role_authorization/controller/allow_group.rb
role_authorization-0.5.7 lib/role_authorization/controller/allow_group.rb
role_authorization-0.5.6 lib/role_authorization/controller/allow_group.rb
role_authorization-0.5.5 lib/role_authorization/controller/allow_group.rb
role_authorization-0.5.4 lib/role_authorization/controller/allow_group.rb