Sha256: 2278f2748a72c16ec86d7054d97d6b16574d9cf574a22cac337e0638f33fbf11
Contents?: true
Size: 609 Bytes
Versions: 31
Compression:
Stored size: 609 Bytes
Contents
require 'padrino-core' require 'haml' require 'pact_broker/services' module PactBroker module UI module Controllers class Clusters < Padrino::Application set :root, File.join(File.dirname(__FILE__), '..') class Cluster def initialize pacticipants, relationships end end get "/" do view_model = ViewDomain::IndexItems.new(pacticipant_service.find_index_items, base_url: base_url) haml 'clusters/show', locals: { relationships: view_model, base_url: base_url }, escape_html: true end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems