Sha256: 4a51573623c69ac343d0bf2ee67f7111b5aed29b013df5f63e960d682bd7d66a

Contents?: true

Size: 231 Bytes

Versions: 2

Compression:

Stored size: 231 Bytes

Contents

module Kant
  class NoAccess
    attr_reader :user

    def initialize(user)
      @user = user
    end

    def can?(action, object)
      false
    end

    def accessible(action, scope, *rest)
      scope.none
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kant-0.0.6 lib/kant/no_access.rb
kant-0.0.5 lib/kant/no_access.rb