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 render_action_link(link, record = nil, options = {})
        if link.action.nil? || link.column&.association&.polymorphic?
          link = action_link_to_inline_form(link, record) if link.column&.association
          options[:authorized] = false if link.action.nil? || link.controller.nil?
          options.delete :link if link.crud_type == :create
        end
        if link.action.nil? || (link.type == :member && options.key?(:authorized) && !options[:authorized])
          html_class = "disabled #{link.action}#{" #{link.html_options[:class]}" if link.html_options[:class].present?}"
          html_options = {:link => action_link_text(link, options), :class => html_class, :title => options[:not_authorized_reason]}
          action_link_html(link, nil, html_options, record)
        else
          url = action_link_url(link, record)
          html_options = action_link_html_options(link, record, options)
          action_link_html(link, url, html_options, record)
        end
      end
def render_action_link ( link , record = nil , options = { } ) if link . action . nil? || link . column &. association &. polymorphic? link = action_link_to_inline_form ( link , record ) if link . column &. association options [ :authorized ] = false if link . action . nil? || link . controller . nil? options . delete :link if link . crud_type == :create end if link . action . nil? || ( link . type == :member && options . key? ( :authorized ) && ! options [ :authorized ] ) html_class = "disabled #{link.action}#{" #{link.html_options[:class]}" if link.html_options[:class].present?}" html_options = { :link => action_link_text ( link , options ) , :class => html_class , :title => options [ :not_authorized_reason ] } action_link_html ( link , nil , html_options , record ) else url = action_link_url ( link , record ) html_options = action_link_html_options ( link , record , options ) action_link_html ( link , url , html_options , record ) end end
params which mustn't be copying to nested links
params which mustn ' t be copying to nested links
link
<not_specific>
record
<not_specific>
options
<not_specific>