Method: ActionDispatch::Routing::RouteSet::Generator#use_recall_for

Defined in:
actionpack/lib/action_dispatch/routing/route_set.rb

#use_recall_for(key) ⇒ Object



737
738
739
740
741
742
743
# File 'actionpack/lib/action_dispatch/routing/route_set.rb', line 737

def use_recall_for(key)
  if @recall[key] && (!@options.key?(key) || @options[key] == @recall[key])
    if !named_route_exists? || segment_keys.include?(key)
      @options[key] = @recall[key]
    end
  end
end