lib/active_scaffold/helpers/action_link_helpers.rb
# params which mustn't be copying to nested links
params which mustn't be copying to nested links
params which mustn ' t be copying to nested links
def url_options_for_nested_link(column, record, link, url_options)
        if column&.association
          url_options[:parent_scaffold] = controller_path
          url_options[column.model.name.foreign_key.to_sym] = url_options.delete(:id)
          url_options[:id] = if column.association.singular? && url_options[:action].to_sym != :index
                               '--CHILD_ID--'
                             end
        elsif link.parameters&.dig(:named_scope)
          url_options[:parent_scaffold] = controller_path
          url_options[active_scaffold_config.model.name.foreign_key.to_sym] = url_options.delete(:id)
          url_options[:id] = nil
        end
      end
def url_options_for_nested_link ( column , record , link , url_options ) if column &. association url_options [ :parent_scaffold ] = controller_path url_options [ column . model . name . foreign_key . to_sym ] = url_options . delete ( :id ) url_options [ :id ] = if column . association . singular? && url_options [ :action ] . to_sym != :index '--CHILD_ID--' end elsif link . parameters &. dig ( :named_scope ) url_options [ :parent_scaffold ] = controller_path url_options [ active_scaffold_config . model . name . foreign_key . to_sym ] = url_options . delete ( :id ) url_options [ :id ] = nil end end
params which mustn't be copying to nested links
params which mustn ' t be copying to nested links
column
<not_specific>
record
<not_specific>
link
<not_specific>
url_options
<not_specific>