app/views/admin/base/index.html.haml in redde-0.3.11 vs app/views/admin/base/index.html.haml in redde-0.3.12
- old
+ new
@@ -1,10 +1,6 @@
= page_header
- res_collection = instance_variable_get("@#{collection}")
= list_table res_collection do |item, column|
- %td.list__cell
- - if item.send(column).is_a?(Time)
- = l item.send(column), format: '%d %b %Y, %H:%M'
- - else
- = item.send(column)
+ %td.list__cell= render_item_column(item, column)