Skip to content

Commit 8eea27a

Browse files
committed
Pass record to block when creating row
1 parent 5676c99 commit 8eea27a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/views/components/attributes_table.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def empty_value
4545
def content_for(attr_or_proc)
4646
value = case attr_or_proc
4747
when Proc
48-
attr_or_proc.call
48+
attr_or_proc.call(@record)
4949
else
5050
content_for_attribute(attr_or_proc)
5151
end

0 commit comments

Comments
 (0)