{"action":"created","issue":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/541","labels_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/541/labels{/name}","comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/541/comments","events_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/541/events","html_url":"https://github.com/doorkeeper-gem/doorkeeper/issues/541","id":53389024,"number":541,"title":"Undefined method `attr_accessible","user":{"login":"rjrferreira","id":4125002,"avatar_url":"https://avatars.githubusercontent.com/u/4125002?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrferreira","html_url":"https://github.com/rjrferreira","followers_url":"https://api.github.com/users/rjrferreira/followers","following_url":"https://api.github.com/users/rjrferreira/following{/other_user}","gists_url":"https://api.github.com/users/rjrferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrferreira/subscriptions","organizations_url":"https://api.github.com/users/rjrferreira/orgs","repos_url":"https://api.github.com/users/rjrferreira/repos","events_url":"https://api.github.com/users/rjrferreira/events{/privacy}","received_events_url":"https://api.github.com/users/rjrferreira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-05T11:56:01Z","updated_at":"2015-01-12T09:52:15Z","closed_at":null,"body":"Hi,\r\n\r\nI have this error:\r\nNoMethodError: undefined method `attr_accessible' for Doorkeeper::AccessGrant:Class\r\n                        AccessGrantMixin at C:/jruby-1.7.16/lib/ruby/gems/shared/gems/doorkeeper-2.0.1/lib/doorkeeper/models/access_grant_mixin.rb:1\r\n\r\n\r\nGemfile.lock:\r\n\r\n(...)\r\ndoorkeeper (2.0.1)\r\n      railties (>= 3.1)\r\nprotected_attributes (1.0.8)\r\nrails (4.0.8)\r\n(...)\r\n\r\nAny idea? "},"comment":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/comments/69547543","html_url":"https://github.com/doorkeeper-gem/doorkeeper/issues/541#issuecomment-69547543","issue_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/541","id":69547543,"user":{"login":"rjrferreira","id":4125002,"avatar_url":"https://avatars.githubusercontent.com/u/4125002?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrferreira","html_url":"https://github.com/rjrferreira","followers_url":"https://api.github.com/users/rjrferreira/followers","following_url":"https://api.github.com/users/rjrferreira/following{/other_user}","gists_url":"https://api.github.com/users/rjrferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrferreira/subscriptions","organizations_url":"https://api.github.com/users/rjrferreira/orgs","repos_url":"https://api.github.com/users/rjrferreira/repos","events_url":"https://api.github.com/users/rjrferreira/events{/privacy}","received_events_url":"https://api.github.com/users/rjrferreira/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T09:52:15Z","updated_at":"2015-01-12T09:52:15Z","body":"The condition works fine.\r\n\"::Rails.version.to_i\" returns 4 and \"defined?(::ProtectedAttributes)\" returns ProtectedAttributes defined!\r\n\r\nUnfortunately i can't provide my failing app."}}