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() Utils.stringify_keys!() formats = .delete('formats') || [.delete('format')] formats.each do |format| set.routes.add_proxy set, *Utils.source_and_target(), format end end |
#same ⇒ Object
30 31 32 |
# File 'lib/proximity/proxy_set.rb', line 30 def same Proxy::Same end |