lib/active_scaffold/helpers/list_column_helpers.rb
# TODO: move empty_field_text and &nbsp; logic in here?
# TODO: we need to distinguish between the automatic links *we* create and the ones that the dev specified. some logic may not apply if the dev specified the link.
move empty_field_text and   logic in here.
TODO: we need to distinguish between the automatic links *we* create and the ones that the dev specified. some logic may not apply if the dev specified the link.
move empty_field_text and logic in here . TODO : we need to distinguish between the automatic links * we * create and the ones that the dev specified . some logic may not apply if the dev specified the link .
def render_list_column(text, column, record)
        if column.link && !skip_action_link?(column.link, record)
          link = column.link
          associated = record.send(column.association.name) if column.association
          authorized = link.action.nil?
          authorized, reason = column_link_authorized?(link, column, record, associated) unless authorized
          render_action_link(link, record, :link => text, :authorized => authorized, :not_authorized_reason => reason)
        elsif inplace_edit?(record, column)
          active_scaffold_inplace_edit(record, column, :formatted_column => text)
        elsif column_wrap_tag
          content_tag column_wrap_tag, text
        else
          text
        end
      rescue StandardError => e
        logger.error "#{e.class.name}: #{e.message} -- on the ActiveScaffold column = :#{column.name} in #{controller.class}"
        raise e
      end
def render_list_column ( text , column , record ) if column . link && ! skip_action_link? ( column . link , record ) link = column . link associated = record . send ( column . association . name ) if column . association authorized = link . action . nil? authorized , reason = column_link_authorized? ( link , column , record , associated ) unless authorized render_action_link ( link , record , :link => text , :authorized => authorized , :not_authorized_reason => reason ) elsif inplace_edit? ( record , column ) active_scaffold_inplace_edit ( record , column , :formatted_column => text ) elsif column_wrap_tag content_tag column_wrap_tag , text else text end rescue StandardError => e logger . error "#{e.class.name}: #{e.message} -- on the ActiveScaffold column = :#{column.name} in #{controller.class}" raise e end
TODO: move empty_field_text and &nbsp; logic in here?
TODO : move empty_field_text and &nbsp ; logic in here?
text
<not_specific>
column
<not_specific>
record
<not_specific>