method

ensure_only_path_option

rails latest stable - Class: ActionView::RoutingUrlFor
ensure_only_path_option(options)
private

No documentation available.

# File actionview/lib/action_view/routing_url_for.rb, line 143
      def ensure_only_path_option(options)
        unless options.key?(:only_path)
          options[:only_path] = _generate_paths_by_default unless options[:host]
        end
      end