{"action":"created","issue":{"url":"https://api.github.com/repos/mixonic/ranked-model/issues/136","repository_url":"https://api.github.com/repos/mixonic/ranked-model","labels_url":"https://api.github.com/repos/mixonic/ranked-model/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/mixonic/ranked-model/issues/136/comments","events_url":"https://api.github.com/repos/mixonic/ranked-model/issues/136/events","html_url":"https://github.com/mixonic/ranked-model/issues/136","id":391119610,"node_id":"MDU6SXNzdWUzOTExMTk2MTA=","number":136,"title":"NoMethodError undefined method `<' for nil:NilClass after 0.4.2 upgarde","user":{"login":"rchrand","id":2136481,"node_id":"MDQ6VXNlcjIxMzY0ODE=","avatar_url":"https://avatars0.githubusercontent.com/u/2136481?v=4","gravatar_id":"","url":"https://api.github.com/users/rchrand","html_url":"https://github.com/rchrand","followers_url":"https://api.github.com/users/rchrand/followers","following_url":"https://api.github.com/users/rchrand/following{/other_user}","gists_url":"https://api.github.com/users/rchrand/gists{/gist_id}","starred_url":"https://api.github.com/users/rchrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchrand/subscriptions","organizations_url":"https://api.github.com/users/rchrand/orgs","repos_url":"https://api.github.com/users/rchrand/repos","events_url":"https://api.github.com/users/rchrand/events{/privacy}","received_events_url":"https://api.github.com/users/rchrand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-12-14T13:52:39Z","updated_at":"2018-12-18T19:17:36Z","closed_at":null,"author_association":"NONE","body":"I'm getting this error after upgrading from `0.4.1 -> 0.4.2`. Downgrading makes it work again.\r\n\r\nOur code:\r\n```ruby\r\nclass Tagging < ApplicationRecord\r\n  include RankedModel\r\n\r\n  belongs_to :tag\r\n  belongs_to :taggable, polymorphic: true\r\n\r\n  ranks :position, with_same: %i[taggable_id taggable_type]\r\nend\r\n```\r\n\r\nIt occurs when trying to add multiple tags in a single action, but adding them individually seems to work.\r\n\r\nStacktrace from Sentry:\r\n![image](https://user-images.githubusercontent.com/2136481/50006648-b7edaf80-ffae-11e8-8c46-b839e6740381.png)\r\n"},"comment":{"url":"https://api.github.com/repos/mixonic/ranked-model/issues/comments/448337204","html_url":"https://github.com/mixonic/ranked-model/issues/136#issuecomment-448337204","issue_url":"https://api.github.com/repos/mixonic/ranked-model/issues/136","id":448337204,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODMzNzIwNA==","user":{"login":"brendon","id":81871,"node_id":"MDQ6VXNlcjgxODcx","avatar_url":"https://avatars3.githubusercontent.com/u/81871?v=4","gravatar_id":"","url":"https://api.github.com/users/brendon","html_url":"https://github.com/brendon","followers_url":"https://api.github.com/users/brendon/followers","following_url":"https://api.github.com/users/brendon/following{/other_user}","gists_url":"https://api.github.com/users/brendon/gists{/gist_id}","starred_url":"https://api.github.com/users/brendon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendon/subscriptions","organizations_url":"https://api.github.com/users/brendon/orgs","repos_url":"https://api.github.com/users/brendon/repos","events_url":"https://api.github.com/users/brendon/events{/privacy}","received_events_url":"https://api.github.com/users/brendon/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T19:17:36Z","updated_at":"2018-12-18T19:17:36Z","author_association":"COLLABORATOR","body":"I think this might be to do with a rebalancing running when we attempt to add a new record to the list. When I get time, I'll investigate that. In the meantime, if someone can come up with a test case that'd be super helpful :D"}}
{"actor":{"display_login":"brendon"}}