Sha256: c791e4ad5c1f00cd9327e4d8f54e73429ee90f127f22f26509927db4e47c2f70

Contents?: true

Size: 278 Bytes

Versions: 4

Compression:

Stored size: 278 Bytes

Contents

module Shamu
  module Security

    # Used in specs and service to service delegated requests to effectively
    # offer no policy and permit all actions.
    class NoPolicy < Policy

      # (see Policy#permit?)
      def permit?( * )
        :yes
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shamu-0.0.24 lib/shamu/security/no_policy.rb
shamu-0.0.21 lib/shamu/security/no_policy.rb
shamu-0.0.20 lib/shamu/security/no_policy.rb
shamu-0.0.19 lib/shamu/security/no_policy.rb