{"action":"created","issue":{"url":"https://api.github.com/repos/collectiveidea/awesome_nested_set/issues/294","labels_url":"https://api.github.com/repos/collectiveidea/awesome_nested_set/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/collectiveidea/awesome_nested_set/issues/294/comments","events_url":"https://api.github.com/repos/collectiveidea/awesome_nested_set/issues/294/events","html_url":"https://github.com/collectiveidea/awesome_nested_set/issues/294","id":53987308,"number":294,"title":"children_count does not work","user":{"login":"imshenitsky","id":170960,"avatar_url":"https://avatars.githubusercontent.com/u/170960?v=3","gravatar_id":"","url":"https://api.github.com/users/imshenitsky","html_url":"https://github.com/imshenitsky","followers_url":"https://api.github.com/users/imshenitsky/followers","following_url":"https://api.github.com/users/imshenitsky/following{/other_user}","gists_url":"https://api.github.com/users/imshenitsky/gists{/gist_id}","starred_url":"https://api.github.com/users/imshenitsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imshenitsky/subscriptions","organizations_url":"https://api.github.com/users/imshenitsky/orgs","repos_url":"https://api.github.com/users/imshenitsky/repos","events_url":"https://api.github.com/users/imshenitsky/events{/privacy}","received_events_url":"https://api.github.com/users/imshenitsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-11T09:58:07Z","updated_at":"2015-05-14T12:04:19Z","closed_at":null,"body":"Optional field \"children_count\" always 0. \r\nActually I can use .children method but this is advanced hit to db.\r\nI did simple as described:\r\n```ruby\r\nroot = Category.create!(:name => 'Root')\r\n  ch = Category.create!(:name => 'First')\r\n  ch.move_to_child_of(root)\r\nroot.reload\r\n```"},"comment":{"url":"https://api.github.com/repos/collectiveidea/awesome_nested_set/issues/comments/102013205","html_url":"https://github.com/collectiveidea/awesome_nested_set/issues/294#issuecomment-102013205","issue_url":"https://api.github.com/repos/collectiveidea/awesome_nested_set/issues/294","id":102013205,"user":{"login":"kaleemullah","id":56748,"avatar_url":"https://avatars.githubusercontent.com/u/56748?v=3","gravatar_id":"","url":"https://api.github.com/users/kaleemullah","html_url":"https://github.com/kaleemullah","followers_url":"https://api.github.com/users/kaleemullah/followers","following_url":"https://api.github.com/users/kaleemullah/following{/other_user}","gists_url":"https://api.github.com/users/kaleemullah/gists{/gist_id}","starred_url":"https://api.github.com/users/kaleemullah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaleemullah/subscriptions","organizations_url":"https://api.github.com/users/kaleemullah/orgs","repos_url":"https://api.github.com/users/kaleemullah/repos","events_url":"https://api.github.com/users/kaleemullah/events{/privacy}","received_events_url":"https://api.github.com/users/kaleemullah/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T12:04:19Z","updated_at":"2015-05-14T12:04:19Z","body":"same problem for me even I've added acts_as_nested_set :counter_cache => :children_count"}}