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

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

#use_recall_for(key) ⇒ Object



725
726
727
728
729
730
731
# File 'actionpack/lib/action_dispatch/routing/route_set.rb', line 725

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