{"comment":{"created_at":"2011-10-13T21:50:08Z","body":"Unfortunately, there are no additional tests included. While it may be difficult (read: pointless) to test the default authorization adapter, it should be possible to test the cancan layer.","updated_at":"2011-10-13T21:50:08Z","url":"https://api.github.com/repos/gregbell/active_admin/issues/comments/2400648","id":2400648,"user":{"gravatar_id":"71016b4daf9db4f378bc65b135efbbe7","avatar_url":"https://secure.gravatar.com/avatar/71016b4daf9db4f378bc65b135efbbe7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jbarket","id":3543,"login":"jbarket"}},"action":"created","issue":{"number":612,"created_at":"2011-10-13T14:28:38Z","pull_request":{"diff_url":"https://github.com/gregbell/active_admin/pull/612.diff","patch_url":"https://github.com/gregbell/active_admin/pull/612.patch","html_url":"https://github.com/gregbell/active_admin/pull/612"},"body":"If settings.nested_associations is true, resources that belong_to the current\r\nresource will be nested underneath it automatically. In other words, if\r\nComments belongs_to Posts, you'll see a menu item for Comments only when\r\nviewing a specific Post, and that menu item will take you to the Comments\r\nrelated to that post.\r\n\r\n/posts/ <- No Comments link\r\n/posts/1 <- /posts/1/comments as the link\r\n\r\nAll of these items accept the normal menu configuration options like label,\r\nparent and display.\r\n\r\nThere may be depth related limitations, but I believe these line up with\r\nthe same depth limitations currently found in ActiveAdmin and\r\nInheritedResource.\r\n\r\nIn addition to this, there is also now a function on the Resource class that will allow you to determine all belongs_to relationships when given a specific resource's name. This is capable of giving parents, children and a combination of these. It may be useful in the future for automatically creating a table_for belongs_to resources on show pages, in a somewhat similar fashion to RailsAdmin.","comments":2,"title":"Added Authorization Layer, CanCan, and option for automatic nesting of belongs_to resources in menus","updated_at":"2011-10-13T21:50:08Z","url":"https://api.github.com/repos/gregbell/active_admin/issues/612","id":1900634,"assignee":null,"milestone":null,"closed_at":"2011-10-13T21:50:08Z","user":{"gravatar_id":"71016b4daf9db4f378bc65b135efbbe7","avatar_url":"https://secure.gravatar.com/avatar/71016b4daf9db4f378bc65b135efbbe7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jbarket","id":3543,"login":"jbarket"},"html_url":"https://github.com/gregbell/active_admin/issues/612","labels":[],"state":"closed"},"legacy":{"issue_id":1900634,"comment_id":2400648}}