Permalink
Browse files

Merge pull request #850 from ekosz/master

Pass record to the block when creating a row
  • Loading branch information...
2 parents fd19ac7 + 8eea27a commit a0d58288cdd5fc2e2f166500d6d9ac169809d293 @mattvague mattvague committed Dec 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_admin/views/components/attributes_table.rb
@@ -45,7 +45,7 @@ def empty_value
def content_for(attr_or_proc)
value = case attr_or_proc
when Proc
- attr_or_proc.call
+ attr_or_proc.call(@record)
else
content_for_attribute(attr_or_proc)
end

0 comments on commit a0d5828

Please sign in to comment.