Skip to content

Commit

Permalink
Merge pull request activeadmin#850 from ekosz/master
Browse files Browse the repository at this point in the history
Pass record to the block when creating a row
  • Loading branch information
mattvague committed Dec 20, 2011
2 parents fd19ac7 + 8eea27a commit a0d5828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_admin/views/components/attributes_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0d5828

Please sign in to comment.