Sha256: 3d26415178d6b6b7a965f1db47537e3dc4cc266c457ccd93fc5d889f3e4b26c9

Contents?: true

Size: 412 Bytes

Versions: 7

Compression:

Stored size: 412 Bytes

Contents

module CanTango
  class PermitEngine < Engine
    module Builder
      class SpecialPermits < Base
        def build
          puts "Building special permits"
          special_permits.map{|role| create_permit(role)}.compact
        end

        def special_permits
          [:system, :any]
        end

        def finder
          CanTango::Permits::RolePermit::Finder
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cantango-0.8.9.4 lib/cantango/permit_engine/builder/special_permits.rb
cantango-0.8.9.3 lib/cantango/permit_engine/builder/special_permits.rb
cantango-0.8.9.2 lib/cantango/permit_engine/builder/special_permits.rb
cantango-0.8.9.1 lib/cantango/permit_engine/builder/special_permits.rb
cantango-0.8.9 lib/cantango/permit_engine/builder/special_permits.rb
cantango-0.8.8.1 lib/cantango/permit_engine/builder/special_permits.rb
cantango-0.8.8 lib/cantango/permit_engine/builder/special_permits.rb