lib/active_admin/views/components/table_for.rb in activeadmin-0.3.1 vs lib/active_admin/views/components/table_for.rb in activeadmin-0.3.2
- old
+ new
@@ -79,10 +79,10 @@
end
def build_table_body
@tbody = tbody do
# Build enough rows for our collection
- @collection.each{|_| tr(:class => cycle('odd', 'even')) }
+ @collection.each{|_| tr(:class => cycle('odd', 'even'), :id => dom_id(_)) }
end
end
def build_table_cell(col, item)
td do