{"action":"created","issue":{"url":"https://api.github.com/repos/rubysherpas/paranoia/issues/334","repository_url":"https://api.github.com/repos/rubysherpas/paranoia","labels_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/334/comments","events_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/334/events","html_url":"https://github.com/rubysherpas/paranoia/issues/334","id":160349023,"number":334,"title":"Trying to run paranoia in Rails 5","user":{"login":"romalopes","id":4647957,"avatar_url":"https://avatars.githubusercontent.com/u/4647957?v=3","gravatar_id":"","url":"https://api.github.com/users/romalopes","html_url":"https://github.com/romalopes","followers_url":"https://api.github.com/users/romalopes/followers","following_url":"https://api.github.com/users/romalopes/following{/other_user}","gists_url":"https://api.github.com/users/romalopes/gists{/gist_id}","starred_url":"https://api.github.com/users/romalopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romalopes/subscriptions","organizations_url":"https://api.github.com/users/romalopes/orgs","repos_url":"https://api.github.com/users/romalopes/repos","events_url":"https://api.github.com/users/romalopes/events{/privacy}","received_events_url":"https://api.github.com/users/romalopes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-15T06:41:03Z","updated_at":"2016-10-07T21:40:34Z","closed_at":"2016-07-12T20:21:52Z","body":"I tried run paranoia in Rails 5, but when I access the class that I used \"acts_as_paranoid\", I found the following error:\r\n\r\n_**Support for calling #default_scope without a block is removed. For example instead of `default_scope where(color: 'red')`, please use `default_scope { where(color: 'red') }`. (Alternatively you can just redefine self.default_scope.)**_\r\n\r\nIn my Gemfile, I have:\r\n\r\n`gem 'rails', '>= 5.0.0.rc1', '< 5.1'\r\ngem \"paranoia\"`\r\n\r\nWhen I change Gemfile to:\r\n`gem \"paranoia\", \"~> 2.1.5\"`\r\n\r\nI have the following error:\r\n\r\nBundler could not find compatible versions for gem \"activerecord\":\r\n  In Gemfile:\r\n    _**paranoia (~> 2.1.5) was resolved to 2.1.5, which depends on\r\n      activerecord (~> 4.0)\r\n\r\n    rails (< 5.1, >= 5.0.0.rc1) was resolved to 5.0.0.rc1, which depends on\r\n      activerecord (= 5.0.0.rc1)**_\r\n\r\n\r\nI could make paranoia work just making a clone of the project and using the gem: paranoia-2.2.0.alpha.gem\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rubysherpas/paranoia/issues/comments/252367875","html_url":"https://github.com/rubysherpas/paranoia/issues/334#issuecomment-252367875","issue_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/334","id":252367875,"user":{"login":"easybills-admin","id":16684491,"avatar_url":"https://avatars.githubusercontent.com/u/16684491?v=3","gravatar_id":"","url":"https://api.github.com/users/easybills-admin","html_url":"https://github.com/easybills-admin","followers_url":"https://api.github.com/users/easybills-admin/followers","following_url":"https://api.github.com/users/easybills-admin/following{/other_user}","gists_url":"https://api.github.com/users/easybills-admin/gists{/gist_id}","starred_url":"https://api.github.com/users/easybills-admin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easybills-admin/subscriptions","organizations_url":"https://api.github.com/users/easybills-admin/orgs","repos_url":"https://api.github.com/users/easybills-admin/repos","events_url":"https://api.github.com/users/easybills-admin/events{/privacy}","received_events_url":"https://api.github.com/users/easybills-admin/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T21:40:34Z","updated_at":"2016-10-07T21:40:34Z","body":"@rubysherpas @BenMorganIO any news on a 2.2.0 release?"}}
{"actor":{"display_login":"easybills-admin"}}