Sha256: e8f138019d6996d3d7aa52009f31568730aeb6818438aa4cc5f9a4fd16b5e4b6

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

module CanTango
  module PermitEngine
    module Builder
      class SpecialPermits < Base      
        def build
          special_permits.map{|role| create_permit(role)}.compact
        end    

        def special_permits
          [:system, :any]
        end    
      
        def finder
          CanTango::PermitEngine::RolePermit::Finder
        end      
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-0.8.0 lib/cantango/permit_engine/builder/special_permits.rb