Class: Mack::Routes::RouteMap
- Inherits:
-
Object
- Object
- Mack::Routes::RouteMap
- Defined in:
- lib/mack-distributed/extensions/route_map.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#connect_with_name(name, path, options = {}, &block) ⇒ Object
:nodoc:
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/mack-distributed/extensions/route_map.rb', line 7 def connect_with_name(name, path, = {}, &block) # :nodoc: n_route = name.methodize _original_connect_with_name(n_route, path, , &block) if configatron.mack.distributed.share_routes Mack::Routes::Urls.class_eval %{ def #{n_route}_distributed_url(options = {}) (@dsd || configatron.mack.distributed.site_domain) + #{n_route}_url(options) end } end end |