Module: Proximity::ProxySet::Scope

Defined in:
lib/proximity/proxy_set.rb

Instance Method Summary collapse

Instance Method Details

#proxy(options) ⇒ Object



21
22
23
24
25
26
27
28
# File 'lib/proximity/proxy_set.rb', line 21

def proxy(options)
  Utils.stringify_keys!(options)
  formats = options.delete('formats') || [options.delete('format')]

  formats.each do |format|
    set.routes.add_proxy set, *Utils.source_and_target(options), format
  end
end

#sameObject



30
31
32
# File 'lib/proximity/proxy_set.rb', line 30

def same
  Proxy::Same
end