{"pull_request":{"user":{"id":212829,"login":"ekosz","url":"https://api.github.com/users/ekosz","gravatar_id":"51a52311be9818006a0387f9dad8a852","avatar_url":"https://secure.gravatar.com/avatar/51a52311be9818006a0387f9dad8a852?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"title":"Pass record to the block when creating a row","merged_at":"2011-12-20T19:41:46Z","created_at":"2011-12-15T16:13:24Z","review_comments":0,"updated_at":"2011-12-20T19:41:46Z","state":"closed","id":598645,"patch_url":"https://github.com/gregbell/active_admin/pull/850.patch","closed_at":"2011-12-20T19:41:46Z","deletions":1,"html_url":"https://github.com/gregbell/active_admin/pull/850","mergeable":null,"issue_url":"https://github.com/gregbell/active_admin/issues/850","base":{"ref":"master","user":{"id":719,"login":"gregbell","url":"https://api.github.com/users/gregbell","gravatar_id":"7963372d1017675cbf3407e2935e9d77","avatar_url":"https://secure.gravatar.com/avatar/7963372d1017675cbf3407e2935e9d77?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"sha":"5676c997af88a206b9660af1bc73afd21ca0c47b","repo":{"git_url":"git://github.com/gregbell/active_admin.git","open_issues":265,"watchers":2285,"created_at":"2010-04-15T14:26:03Z","fork":false,"updated_at":"2011-12-20T19:41:46Z","id":611921,"language":"Ruby","html_url":"https://github.com/gregbell/active_admin","name":"active_admin","description":"The administration framework for Ruby on Rails applications.","master_branch":null,"url":"https://api.github.com/repos/gregbell/active_admin","clone_url":"https://github.com/gregbell/active_admin.git","forks":445,"ssh_url":"git@github.com:gregbell/active_admin.git","pushed_at":"2011-12-20T19:41:46Z","owner":{"id":719,"login":"gregbell","url":"https://api.github.com/users/gregbell","gravatar_id":"7963372d1017675cbf3407e2935e9d77","avatar_url":"https://secure.gravatar.com/avatar/7963372d1017675cbf3407e2935e9d77?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"homepage":"activeadmin.info","size":1812,"private":false,"svn_url":"https://svn.github.com/gregbell/active_admin"},"label":"gregbell:master"},"body":"I noticed that the syntax for creating a column in a table and a row in an attributes_table wasn't the same.\r\n\r\nWith a column I could do:\r\n\r\n```ruby\r\nindex do\r\n  column :name do |user|\r\n    link_to user.name, admin_user_path(user)\r\n  end\r\nend\r\n```\r\n\r\nBut 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.\r\n\r\nThis patch allows for doing things like:\r\n\r\n```ruby\r\nshow do\r\n  attributes_table do\r\n    row :company do |user|\r\n      link_to user.company, user.company_link\r\n    end\r\n  end\r\nend\r\n```","commits":1,"number":850,"additions":1,"url":"https://api.github.com/repos/gregbell/active_admin/pulls/850","diff_url":"https://github.com/gregbell/active_admin/pull/850.diff","merged_by":{"id":64985,"login":"mattvague","url":"https://api.github.com/users/mattvague","gravatar_id":"2349ccb42572e7d5de5eeaa8eae61743","avatar_url":"https://secure.gravatar.com/avatar/2349ccb42572e7d5de5eeaa8eae61743?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"_links":{"review_comments":{"href":"https://api.github.com/repos/gregbell/active_admin/pulls/850/comments"},"html":{"href":"https://github.com/gregbell/active_admin/pull/850"},"self":{"href":"https://api.github.com/repos/gregbell/active_admin/pulls/850"},"comments":{"href":"https://api.github.com/repos/gregbell/active_admin/issues/850/comments"}},"comments":0,"head":{"ref":"master","user":{"id":212829,"login":"ekosz","url":"https://api.github.com/users/ekosz","gravatar_id":"51a52311be9818006a0387f9dad8a852","avatar_url":"https://secure.gravatar.com/avatar/51a52311be9818006a0387f9dad8a852?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"sha":"8eea27aecde01343c79840074ee8ff7a1955dd84","repo":{"git_url":"git://github.com/ekosz/active_admin.git","open_issues":0,"watchers":1,"created_at":"2011-12-15T16:01:45Z","fork":true,"updated_at":"2011-12-15T16:05:29Z","id":2988701,"language":"Ruby","html_url":"https://github.com/ekosz/active_admin","name":"active_admin","description":"The administration framework for Ruby on Rails applications.","master_branch":null,"url":"https://api.github.com/repos/ekosz/active_admin","clone_url":"https://github.com/ekosz/active_admin.git","forks":0,"ssh_url":"git@github.com:ekosz/active_admin.git","pushed_at":"2011-12-15T16:05:28Z","owner":{"id":212829,"login":"ekosz","url":"https://api.github.com/users/ekosz","gravatar_id":"51a52311be9818006a0387f9dad8a852","avatar_url":"https://secure.gravatar.com/avatar/51a52311be9818006a0387f9dad8a852?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"homepage":"activeadmin.info","size":172,"private":false,"svn_url":"https://svn.github.com/ekosz/active_admin"},"label":"ekosz:master"},"changed_files":1,"merged":true},"number":850,"action":"closed"}