Method: ActionAdmin::Presenter#render_table_columns
- Defined in:
- app/presenters/action_admin/presenter.rb
#render_table_columns(table) ⇒ Object
154 155 156 157 158 159 160 161 162 163 164 |
# File 'app/presenters/action_admin/presenter.rb', line 154 def render_table_columns(table) table = self.record_tables[table] cells = [] table.columns.each do |k, v| = v.fetch(:attribute, {}) cells << @context.content_tag(:td, render_attribute(k, ), v[:html]) end cells.join.html_safe end |