gregbell/active_admin — pull request #850 by ekosz (2011-12-15 16:13:24+00:00)
Title: Pass record to the block when creating a row

I noticed that the syntax for creating a column in a table and a row in an attributes_table wasn't the same.

With a column I could do:

```ruby
index do
column :name do |user|
link_to user.name, admin_user_path(user)
end
end
```

But when I tried to do the same with a row in a attributes_table I noticed that there wasn't a record passed to that block for me to work off of, and active_admin was throwing an error.

This patch allows for doing things like:

```ruby
show do
attributes_table do
row :company do |user|
link_to user.company, user.company_link
end
end
end
```