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_sti_link(column, record, link, url_options)
        return unless link.column.nil?
        return if (sti_controller_path = controller_path_for_activerecord(record.class)).nil?
        url_options[:controller] = sti_controller_path
        url_options[:parent_sti] = controller_path
      end
def url_options_for_sti_link ( column , record , link , url_options ) return unless link . column . nil? return if ( sti_controller_path = controller_path_for_activerecord ( record . class ) ) . nil? url_options [ :controller ] = sti_controller_path url_options [ :parent_sti ] = controller_path end
params which mustn't be copying to nested links
params which mustn ' t be copying to nested links
# need to find out controller of current record type and set parameters # it's quite difficult to detect an sti link # if link.column.nil? we are sure that it isn't a singular association inline autolink # however that will not work if a sti parent is a singular association inline autolink
column
<not_specific>
record
<not_specific>
link
<not_specific>
url_options
<not_specific>