{"action":"created","issue":{"url":"https://api.github.com/repos/amerine/acts_as_tree/issues/57","repository_url":"https://api.github.com/repos/amerine/acts_as_tree","labels_url":"https://api.github.com/repos/amerine/acts_as_tree/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/amerine/acts_as_tree/issues/57/comments","events_url":"https://api.github.com/repos/amerine/acts_as_tree/issues/57/events","html_url":"https://github.com/amerine/acts_as_tree/issues/57","id":194314558,"number":57,"title":"v2.6 doesn't play nice with Enumerize gem anymore","user":{"login":"jmuheim","id":1814983,"avatar_url":"https://avatars.githubusercontent.com/u/1814983?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuheim","html_url":"https://github.com/jmuheim","followers_url":"https://api.github.com/users/jmuheim/followers","following_url":"https://api.github.com/users/jmuheim/following{/other_user}","gists_url":"https://api.github.com/users/jmuheim/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuheim/subscriptions","organizations_url":"https://api.github.com/users/jmuheim/orgs","repos_url":"https://api.github.com/users/jmuheim/repos","events_url":"https://api.github.com/users/jmuheim/events{/privacy}","received_events_url":"https://api.github.com/users/jmuheim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-08T11:40:37Z","updated_at":"2016-12-08T20:55:15Z","closed_at":null,"body":"I have this model:\r\n\r\nclass SuccessCriterion < ActiveRecord::Base\r\n  extend Enumerize\r\n  extend ActsAsTree::TreeWalker\r\n\r\n  enumerize :level, in: [:a, :aa, :aaa]\r\n\r\n  acts_as_tree order: :position, dependent: :restrict_with_error\r\n  acts_as_list scope: [:parent_id]\r\nend\r\n```\r\n\r\nAfter upgrading from v2.5.1 to v2.6, I get this error when calling`success_criterion.level_text`:\r\n\r\n    undefined method `text' for 0:Fixnum\r\n\r\nAny idea where's the problem?"},"comment":{"url":"https://api.github.com/repos/amerine/acts_as_tree/issues/comments/265852738","html_url":"https://github.com/amerine/acts_as_tree/issues/57#issuecomment-265852738","issue_url":"https://api.github.com/repos/amerine/acts_as_tree/issues/57","id":265852738,"user":{"login":"felixbuenemann","id":909587,"avatar_url":"https://avatars.githubusercontent.com/u/909587?v=3","gravatar_id":"","url":"https://api.github.com/users/felixbuenemann","html_url":"https://github.com/felixbuenemann","followers_url":"https://api.github.com/users/felixbuenemann/followers","following_url":"https://api.github.com/users/felixbuenemann/following{/other_user}","gists_url":"https://api.github.com/users/felixbuenemann/gists{/gist_id}","starred_url":"https://api.github.com/users/felixbuenemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixbuenemann/subscriptions","organizations_url":"https://api.github.com/users/felixbuenemann/orgs","repos_url":"https://api.github.com/users/felixbuenemann/repos","events_url":"https://api.github.com/users/felixbuenemann/events{/privacy}","received_events_url":"https://api.github.com/users/felixbuenemann/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T20:55:15Z","updated_at":"2016-12-08T20:55:15Z","body":"If you want to keep your method as is, you could create a monkey patch in an initializer like `config/initializers/acts_as_tree_remove_level.rb` with the following content:\r\n\r\n```ruby\r\nmodule ActsAsTree\r\n  module InstanceMethods\r\n    undef tree\r\n  end\r\nend\r\n```"}}
{"actor":{"display_login":"felixbuenemann"}}