lib/active_scaffold/helpers/action_link_helpers.rb
# setup the action link to inline form
setup the action link to inline form
setup the action link to inline form
def action_link_to_inline_form(link, record)
        link = link.dup
        associated = record.send(link.column.association.name)
        if link.column.association&.polymorphic?
          link.controller = controller_path_for_activerecord(associated.class)
          return link if link.controller.nil?
        end
        link = configure_column_link(link, record, associated) if link.action.nil?
        link
      end
def action_link_to_inline_form ( link , record ) link = link . dup associated = record . send ( link . column . association . name ) if link . column . association &. polymorphic? link . controller = controller_path_for_activerecord ( associated . class ) return link if link . controller . nil? end link = configure_column_link ( link , record , associated ) if link . action . nil? link end
setup the action link to inline form
setup the action link to inline form
link
<not_specific>
record
<not_specific>