Sha256: e6ac5aecd134321820e8168e36e1381caca949e7ae192c1aae0e5959ee12f430

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

module CanTango
  module PermissionEngine
    module Selector 
      class Base
        attr_reader :subject

        def initialize subject
          @subject = subject
        end

        def select permissions
          permissions.select{|permission| valid? permission }
        end
      end
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-0.8.0 lib/cantango/permission_engine/selector/base.rb